summaryrefslogtreecommitdiff
path: root/lcdgps.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcdgps.c')
-rw-r--r--lcdgps.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lcdgps.c b/lcdgps.c
index 041cd8e6..03a0ca92 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -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>