Page MenuHomeFreeBSD

D39176.id119164.diff
No OneTemporary

D39176.id119164.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. Issue 8 doesn't
+ * yet have an assigned 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
Sun, Sep 29, 9:06 AM (15 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13114909
Default Alt Text
D39176.id119164.diff (793 B)

Event Timeline