Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102695041
D39176.id119216.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
841 B
Referenced Files
None
Subscribers
None
D39176.id119216.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D39176: _endian.h: Include sys/ctypes.h for visibility macros
Attached
Detach File
Event Timeline
Log In to Comment