From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/624 Path: news.gmane.org!not-for-mail From: Georgi Chorbadzhiyski Newsgroups: gmane.linux.lib.musl.general 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 Message-ID: <1331280854-9080-5-git-send-email-gf@unixsol.org> References: <1331280854-9080-1-git-send-email-gf@unixsol.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1331280885 21543 80.91.229.3 (9 Mar 2012 08:14:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2012 08:14:45 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-624-gllmg-musl=m.gmane.org@lists.openwall.com Fri Mar 09 09:14:45 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1S5uyK-0000eL-EH for gllmg-musl@plane.gmane.org; Fri, 09 Mar 2012 09:14:44 +0100 Original-Received: (qmail 22059 invoked by uid 550); 9 Mar 2012 08:14:40 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 21993 invoked from network); 9 Mar 2012 08:14:31 -0000 X-Mailer: git-send-email 1.7.5.1 In-Reply-To: <1331280854-9080-1-git-send-email-gf@unixsol.org> Xref: news.gmane.org gmane.linux.lib.musl.general:624 Archived-At: --- 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 +#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 #include -#include #endif #ifdef __cplusplus -- 1.7.5.1