# HG changeset patch # User Michiel Broek # Date 1407270562 -7200 # Node ID 3c8bf18fdf4261d4d1b9edf33c158767755d07af # Parent 7c44b11a10b01940a8ecda034809055341a61d55 Updated conditional defines and dependencies diff -r 7c44b11a10b0 -r 3c8bf18fdf42 thermferm/Makefile --- a/thermferm/Makefile Tue Aug 05 21:46:49 2014 +0200 +++ b/thermferm/Makefile Tue Aug 05 22:29:22 2014 +0200 @@ -63,6 +63,6 @@ lcd-pcf8574.o: thermferm.h lcd-pcf8574.h thermferm.o: lock.h logger.h rdconfig.h devices.h server.h thermferm.h lcd-pcf8574.h lcd-buffer.h futil.h xutil.h xutil.o: thermferm.h xutil.h -server.o: rdconfig.h thermferm.h logger.h server.h xutil.h devices.h +server.o: rdconfig.h thermferm.h logger.h devices.h server.h xutil.h rdconfig.o: rdconfig.h thermferm.h futil.h xutil.h # End of generated dependencies diff -r 7c44b11a10b0 -r 3c8bf18fdf42 thermferm/devices.c --- a/thermferm/devices.c Tue Aug 05 21:46:49 2014 +0200 +++ b/thermferm/devices.c Tue Aug 05 22:29:22 2014 +0200 @@ -36,9 +36,11 @@ int device_out(char *uuid, int value) { devices_list *device; - char buf[40]; + time_t now; +#ifdef HAVE_WIRINGPI_H int i, rc; - time_t now; + char buf[40]; +#endif if (uuid == NULL) return 0;