From: Georgi Chorbadzhiyski <gf@unixsol.org>
To: musl@lists.openwall.com
Subject: [PATCH 4/4] include/sys/types.h: major(), minor() and makedev() should be defined if _BSD_SOURCE is set.
Date: Fri, 9 Mar 2012 10:14:14 +0200 [thread overview]
Message-ID: <1331280854-9080-5-git-send-email-gf@unixsol.org> (raw)
In-Reply-To: <1331280854-9080-1-git-send-email-gf@unixsol.org>
---
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
next prev parent reply other threads:[~2012-03-09 8:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-09 8:14 [PATCH 0/4] Fix function definitions Georgi Chorbadzhiyski
2012-03-09 8:14 ` [PATCH 1/4] include/stdlib.h: Define clearenv() if (_SVID_SOURCE || _BSD_SOURCE) is set Georgi Chorbadzhiyski
2012-03-09 8:14 ` [PATCH 2/4] include/unistd.h: Define sethostname() if _BSD_SOURCE " Georgi Chorbadzhiyski
2012-03-09 8:14 ` [PATCH 3/4] include/unistd.h: Define vfork() " Georgi Chorbadzhiyski
2012-03-09 8:14 ` Georgi Chorbadzhiyski [this message]
2012-03-09 8:21 ` [PATCH 0/4] Fix function definitions Georgi Chorbadzhiyski
2012-03-09 8:22 ` Georgi Chorbadzhiyski
2012-03-09 8:33 ` Rich Felker
2012-03-09 9:16 ` Georgi Chorbadzhiyski
2012-03-09 15:11 ` Rob Landley
2012-03-09 16:38 ` Rich Felker
2012-03-16 19:05 ` Isaac Dunham
2012-03-16 22:48 ` Rich Felker
2012-04-05 21:06 ` Isaac Dunham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1331280854-9080-5-git-send-email-gf@unixsol.org \
--to=gf@unixsol.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).