summaryrefslogtreecommitdiffstats
path: root/ax25ipd/routing.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-07-26 00:11:56 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-07-26 00:16:07 +0200
commit02450385adc79578ac67c8ebb6d4417df69377b1 (patch)
treed425df9f5865f66423b3491433ffca4e307973d2 /ax25ipd/routing.c
parent11fff636f92341a2f73b3fd3868c7f95da625df9 (diff)
ax25ipd: Cleanup header file inclusion.
We were including way too many system header files, some even multiple times and it wasn't immediately visible. Clean this. This also drops the definitions of __USE_XOPEN which never had the desired effect with glibc. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/routing.c')
-rw-r--r--ax25ipd/routing.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/ax25ipd/routing.c b/ax25ipd/routing.c
index 6fd5db4..6ac070a 100644
--- a/ax25ipd/routing.c
+++ b/ax25ipd/routing.c
@@ -6,12 +6,21 @@
*
*/
-#include <stdio.h>
-#include "ax25ipd.h"
-#include <sys/types.h>
-#include <netinet/in.h>
#include <memory.h>
+#include <stdio.h>
#include <syslog.h>
+#include <arpa/inet.h>
+#include <netinet/in.h>
+#include <sys/types.h>
+
+#include "ax25ipd.h"
+
+#ifndef FALSE
+#define FALSE 0
+#endif
+#ifndef TRUE
+#define TRUE 1
+#endif
/* The routing table structure is not visible outside this module. */