--- a/lib/mbselib.h Sun May 18 21:27:07 2014 +0200 +++ b/lib/mbselib.h Sun May 18 22:56:43 2014 +0200 @@ -6,6 +6,7 @@ #include <stdlib.h> #include <stdio.h> #include <stdint.h> +#include <stdarg.h> #include <string.h> #include <ctype.h> #include <sys/types.h> @@ -20,7 +21,8 @@ #include <getopt.h> #include <limits.h> #include <sys/socket.h> -#include <sys/un.h> +#include <arpa/inet.h> +#include <netdb.h> #include <poll.h> @@ -68,6 +70,7 @@ char *name; /* Configuration name */ char *mosq_host; /* mosquitto server hostname */ int mosq_port; /* mosquitto server port */ + int my_port; /* my client/server port */ w1_therm *w1therms; /* 1-wire temp sensors */ #ifdef HAVE_WIRINGPI_H int lcd_cols; /* LCD display columns */