Updated conditional defines and dependencies

Tue, 05 Aug 2014 22:29:22 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Tue, 05 Aug 2014 22:29:22 +0200
changeset 187
3c8bf18fdf42
parent 186
7c44b11a10b0
child 188
4fc17ef4593f

Updated conditional defines and dependencies

thermferm/Makefile file | annotate | diff | comparison | revisions
thermferm/devices.c file | annotate | diff | comparison | revisions
--- 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
--- 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;

mercurial