# HG changeset patch # User Michiel Broek # Date 1401529643 -7200 # Node ID e8e7b46b705be10d51cbf4930ef568bcf7109180 # Parent a76dc0db592cb54c6f2ce7b091b8c390823ff244 Fixed compilation without wiringpi diff -r a76dc0db592c -r e8e7b46b705b rc433/Makefile --- a/rc433/Makefile Sat May 31 11:39:13 2014 +0200 +++ b/rc433/Makefile Sat May 31 11:47:23 2014 +0200 @@ -60,8 +60,8 @@ # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT # Dependencies generated by make depend recv.o: rc433.h -send.o: rc433.h sniffer.o: rc433.h rc-switch.o: rc433.h xutil.o: rc433.h +send.o: rc433.h # End of generated dependencies diff -r a76dc0db592c -r e8e7b46b705b rc433/rc433.h --- a/rc433/rc433.h Sat May 31 11:39:13 2014 +0200 +++ b/rc433/rc433.h Sat May 31 11:47:23 2014 +0200 @@ -15,6 +15,7 @@ #include #include +#ifdef HAVE_WIRINGPI_H /* wiringPi */ #include @@ -50,5 +51,7 @@ char *xstrcpy(char *); char *xstrcat(char *, char *); +#endif + #endif diff -r a76dc0db592c -r e8e7b46b705b rc433/send.c --- a/rc433/send.c Sat May 31 11:39:13 2014 +0200 +++ b/rc433/send.c Sat May 31 11:47:23 2014 +0200 @@ -20,8 +20,7 @@ * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *****************************************************************************/ -#include "../lib/mbselib.h" -#include "send.h" +#include "rc433.h" #ifdef HAVE_WIRINGPI_H diff -r a76dc0db592c -r e8e7b46b705b rc433/send.h --- a/rc433/send.h Sat May 31 11:39:13 2014 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -#ifndef _SEND_H -#define _SEND_H - - -#define TRUE 1 -#define FALSE 0 - - -#endif diff -r a76dc0db592c -r e8e7b46b705b rc433/sniffer.c --- a/rc433/sniffer.c Sat May 31 11:39:13 2014 +0200 +++ b/rc433/sniffer.c Sat May 31 11:47:23 2014 +0200 @@ -20,8 +20,7 @@ * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *****************************************************************************/ -#include "../lib/mbselib.h" -#include "sniffer.h" +#include "rc433.h" #ifdef HAVE_WIRINGPI_H diff -r a76dc0db592c -r e8e7b46b705b rc433/sniffer.h --- a/rc433/sniffer.h Sat May 31 11:39:13 2014 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -#ifndef _SNIFFER_H -#define _SNIFFER_H - - -#define TRUE 1 -#define FALSE 0 - - -#endif diff -r a76dc0db592c -r e8e7b46b705b thermferm/Makefile --- a/thermferm/Makefile Sat May 31 11:39:13 2014 +0200 +++ b/thermferm/Makefile Sat May 31 11:47:23 2014 +0200 @@ -54,13 +54,13 @@ # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT # Dependencies generated by make depend -thermferm.o: thermferm.h +rc-switch.o: thermferm.h sensors.o: thermferm.h -server.o: thermferm.h -xutil.o: thermferm.h -lcd-pcf8574.o: thermferm.h -rdconfig.o: thermferm.h lock.o: thermferm.h logger.o: thermferm.h -rc-switch.o: thermferm.h +lcd-pcf8574.o: thermferm.h +thermferm.o: thermferm.h +xutil.o: thermferm.h +server.o: thermferm.h +rdconfig.o: thermferm.h # End of generated dependencies diff -r a76dc0db592c -r e8e7b46b705b thermferm/rdconfig.c --- a/thermferm/rdconfig.c Sat May 31 11:39:13 2014 +0200 +++ b/thermferm/rdconfig.c Sat May 31 11:47:23 2014 +0200 @@ -22,6 +22,7 @@ #include "thermferm.h" +#ifdef HAVE_WIRINGPI_H bool debug = FALSE; static char *mypath; @@ -34,9 +35,7 @@ static int getstr(char **); static int getint(char **); static int getw1(char **); -#ifdef HAVE_WIRINGPI_H static int getrcs(char **); -#endif static int getuch(char **); static int getfloat(char **); //static int getbyt(char **); @@ -363,7 +362,6 @@ -#ifdef HAVE_WIRINGPI_H static int getrcs(char **dest) { char *p, *q = NULL, *r = NULL; @@ -401,7 +399,6 @@ return 0; } -#endif @@ -470,4 +467,5 @@ } */ +#endif diff -r a76dc0db592c -r e8e7b46b705b thermferm/server.c --- a/thermferm/server.c Sat May 31 11:39:13 2014 +0200 +++ b/thermferm/server.c Sat May 31 11:47:23 2014 +0200 @@ -22,6 +22,8 @@ #include "thermferm.h" +#ifdef HAVE_WIRINGPI_H + extern bool my_shutdown; extern bool debug; extern int lcdHandle; @@ -367,4 +369,5 @@ } +#endif