]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Moved all system-dependent #include's containing endianity conversion
authorMartin Mares <mj@ucw.cz>
Mon, 29 Mar 1999 19:14:43 +0000 (19:14 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 29 Mar 1999 19:14:43 +0000 (19:14 +0000)
functions to sysdep header endian.h.

lib/ipv4.h
sysdep/unix/Modules
sysdep/unix/endian.h [new file with mode: 0644]

index 4ae3e952a4ca9105bcd17d143c81f986127dffba..d136536c7276a6d39931e3e04ca91866d90c78c2 100644 (file)
@@ -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
index bb0385d5c00558ccdc62907d771369d12240a0b4..7d403dd9aedd18fe69ae936aa1ec8e4895b704ff 100644 (file)
@@ -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 (file)
index 0000000..58c746f
--- /dev/null
@@ -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