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
Mon, Aug 24, 8:19 AM (12 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37178350
Default Alt Text
D39176.id119164.diff (793 B)

Event Timeline