thermferm/thermferm.h

changeset 74
879bd09e2b96
parent 73
4a28de5b9b47
child 75
4b976601737d
--- a/thermferm/thermferm.h	Mon Jun 23 22:50:29 2014 +0200
+++ b/thermferm/thermferm.h	Tue Jun 24 20:21:07 2014 +0200
@@ -29,13 +29,13 @@
 #include <netdb.h>
 #include <poll.h>
 #include <stdbool.h>
+#ifndef HAVE_WIRINGPI_H
+#include <pthread.h>
+#endif
 #include <libxml/xmlmemory.h>
 #include <libxml/parser.h>
 
 
-/* mosquitto */
-//  # include <mosquitto.h>
-
 #ifdef HAVE_WIRINGPI_H
 /* wiringPi */
 #include <wiringPi.h>
@@ -180,7 +180,7 @@
 #ifdef HAVE_WIRINGPI_H
 PI_THREAD (my_sensors_loop);
 #else
-int my_sensors_loop(void);
+void *my_sensors_loop(void *);
 #endif
 
 /* server.c */
@@ -189,7 +189,7 @@
 #ifdef HAVE_WIRINGPI_H
 PI_THREAD (my_server_loop);
 #else
-int my_server_loop(void);
+void *my_server_loop(void *);
 #endif
 
 

mercurial