summaryrefslogtreecommitdiff
path: root/sysdep/unix/endian.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-29 19:14:43 +0000
committerMartin Mares <mj@ucw.cz>1999-03-29 19:14:43 +0000
commitf54801ffedf3d6342b37c1560502bfc24e7fe64a (patch)
tree2e8af87bd5690a6a52d12385bc91ad2cbb987163 /sysdep/unix/endian.h
parent6134024815adf2541293008f848dce4e8a21d061 (diff)
Moved all system-dependent #include's containing endianity conversion
functions to sysdep header endian.h.
Diffstat (limited to 'sysdep/unix/endian.h')
-rw-r--r--sysdep/unix/endian.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sysdep/unix/endian.h b/sysdep/unix/endian.h
new file mode 100644
index 00000000..58c746f0
--- /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