Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri,  9 Mar 2012 10:14:14 +0200
From: Georgi Chorbadzhiyski <gf@...xsol.org>
To: musl@...ts.openwall.com
Subject: [PATCH 4/4] include/sys/types.h: major(), minor() and makedev() should be defined if _BSD_SOURCE is set.

---
 include/sys/types.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/include/sys/types.h b/include/sys/types.h
index 18433f8..cef38d1 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -58,6 +58,10 @@ typedef __uint16_t u_int16_t;
 typedef __uint32_t u_int32_t;
 typedef __uint64_t u_int64_t;
 
+#ifdef _BSD_SOURCE
+#include <sys/sysmacros.h>
+#endif
+
 #ifdef _GNU_SOURCE
 typedef char *caddr_t;
 typedef unsigned char u_char;
@@ -69,7 +73,6 @@ typedef unsigned long long u_quad_t;
 typedef long register_t;
 #include <endian.h>
 #include <sys/select.h>
-#include <sys/sysmacros.h>
 #endif
 
 #ifdef __cplusplus
-- 
1.7.5.1

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.