diff options
Diffstat (limited to 'lcdgps.c')
-rw-r--r-- | lcdgps.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -36,11 +36,13 @@ #include <sys/types.h> #include <sys/stat.h> -#ifndef __linux__ /* <netdb.h> briongs these in under Linux */ +#include <netdb.h> +#ifndef AF_UNSPEC #include <sys/socket.h> +#endif /* AF_UNSPEC */ +#ifndef INADDR_ANY #include <netinet/in.h> -#endif /* __linux__ */ -#include <netdb.h> +#endif /* INADDR_ANY */ #include <time.h> /* for select() */ #include <stdlib.h> #include <string.h> |