summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ipv4.h5
-rw-r--r--sysdep/unix/Modules1
-rw-r--r--sysdep/unix/endian.h17
3 files changed, 20 insertions, 3 deletions
diff --git a/lib/ipv4.h b/lib/ipv4.h
index 4ae3e95..d136536 100644
--- a/lib/ipv4.h
+++ b/lib/ipv4.h
@@ -1,7 +1,7 @@
/*
* BIRD -- IP Addresses et Cetera for IPv4
*
- * (c) 1998 Martin Mares <mj@ucw.cz>
+ * (c) 1998--1999 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -9,8 +9,7 @@
#ifndef _BIRD_IPV4_H_
#define _BIRD_IPV4_H_
-#include <netinet/in.h>
-
+#include "lib/endian.h"
#include "lib/bitops.h"
#ifdef DEBUGGING
diff --git a/sysdep/unix/Modules b/sysdep/unix/Modules
index bb0385d..7d403dd 100644
--- a/sysdep/unix/Modules
+++ b/sysdep/unix/Modules
@@ -3,6 +3,7 @@ main.c
timer.h
io.c
unix.h
+endian.h
krt.c
krt.h
diff --git a/sysdep/unix/endian.h b/sysdep/unix/endian.h
new file mode 100644
index 0000000..58c746f
--- /dev/null
+++ b/sysdep/unix/endian.h
@@ -0,0 +1,17 @@
+/*
+ * BIRD -- Endianity Conversion
+ *
+ * (c) 1999 Martin Mares <mj@ucw.cz>
+ *
+ * Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+#ifndef _BIRD_ENDIAN_H_
+#define _BIRD_ENDIAN_H_
+
+/* hton[sl] and ntoh[sl] are defined here */
+
+#include <sys/types.h>
+#include <netinet/in.h>
+
+#endif