Page MenuHomeFreeBSD

D39176.id119216.diff
No OneTemporary

D39176.id119216.diff

diff --git a/sys/sys/_endian.h b/sys/sys/_endian.h
--- a/sys/sys/_endian.h
+++ b/sys/sys/_endian.h
@@ -36,6 +36,8 @@
#error "sys/_endian.h should not be included directly"
#endif
+#include <sys/cdefs.h> /* visibility macros */
+
/* BSD Compatiblity */
#define _BYTE_ORDER __BYTE_ORDER__
@@ -66,10 +68,11 @@
#endif
/*
- * Deprecated variants that don't have enough underscores to be useful in more
- * strict namespaces.
+ * POSIX Issue 8 will require these for endian.h. Define them there and in the
+ * traditional BSD compilation environment. Since issue 8 doesn't yet have an
+ * assigned date, use strictly greater than issue 7's date.
*/
-#if __BSD_VISIBLE
+#if __BSD_VISIBLE || _POSIX_C_SOURCE > 200809
#define LITTLE_ENDIAN _LITTLE_ENDIAN
#define BIG_ENDIAN _BIG_ENDIAN
#define PDP_ENDIAN _PDP_ENDIAN

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 11:26 PM (7 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14667472
Default Alt Text
D39176.id119216.diff (841 B)

Event Timeline