summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/bits
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-02-11 12:42:30 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-02-11 12:42:30 +0000
commit7be671075d93f8ff08c59068a554db2c26f2bffd (patch)
treea4fac3081f9b268e946397594dc504f44c7d6e90 /winsup/cygwin/include/bits
parent96b998db51b160a181041424c11588e7c4182b8d (diff)
downloadcygnal-7be671075d93f8ff08c59068a554db2c26f2bffd.tar.gz
cygnal-7be671075d93f8ff08c59068a554db2c26f2bffd.tar.bz2
cygnal-7be671075d93f8ff08c59068a554db2c26f2bffd.zip
* include/endian.h: Move definitions of __BIG_ENDIAN, __LITTLE_ENDIAN,
and __BYTE_ORDER into ... * include/bits/endian.h: New file. * include/arpa/nameser_compat.h: Include endian.h rather than defining BYTE_ORDER here. * include/asm/byteorder.h: Include bits/endian.h. Drop definition of __LITTLE_ENDIAN. * include/netinet/ip.h: Include bits/endian.h. Drop definitions of BIG_ENDIAN, LITTLE_ENDIAN, and BYTE_ORDER. Use underscored variants of aforementioned constants. * include/netinet/tcp.h: Ditto. * include/sys/param.h: Drop disabled definitions of BIG_ENDIAN, LITTLE_ENDIAN, and BYTE_ORDER. * include/netinet/ip.h: Reformat. Define setsockopt IP_TOS options matching recent RFCs. Tweak comments.
Diffstat (limited to 'winsup/cygwin/include/bits')
-rw-r--r--winsup/cygwin/include/bits/endian.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/winsup/cygwin/include/bits/endian.h b/winsup/cygwin/include/bits/endian.h
new file mode 100644
index 000000000..492932990
--- /dev/null
+++ b/winsup/cygwin/include/bits/endian.h
@@ -0,0 +1,25 @@
+/* bits/endian.h
+
+ Copyright 2011 Red Hat, Inc.
+
+This file is part of Cygwin.
+
+This software is a copyrighted work licensed under the terms of the
+Cygwin license. Please consult the file "CYGWIN_LICENSE" for
+details. */
+
+#ifndef _BITS_ENDIAN_H_
+#define _BITS_ENDIAN_H_
+
+#ifndef __BIG_ENDIAN
+# define __BIG_ENDIAN 4321
+#endif
+#ifndef __LITTLE_ENDIAN
+# define __LITTLE_ENDIAN 1234
+#endif
+
+#ifndef __BYTE_ORDER
+# define __BYTE_ORDER __LITTLE_ENDIAN
+#endif
+
+#endif /* _BITS_ENDIAN_H_ */