From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/621 Path: news.gmane.org!not-for-mail From: Georgi Chorbadzhiyski Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH 0/4] Fix function definitions. Date: Fri, 9 Mar 2012 10:14:10 +0200 Message-ID: <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 1331280884 21527 80.91.229.3 (9 Mar 2012 08:14:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2012 08:14:44 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-622-gllmg-musl=m.gmane.org@lists.openwall.com Fri Mar 09 09:14:44 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 1S5uyI-0000dM-M9 for gllmg-musl@plane.gmane.org; Fri, 09 Mar 2012 09:14:42 +0100 Original-Received: (qmail 21988 invoked by uid 550); 9 Mar 2012 08:14:30 -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 21960 invoked from network); 9 Mar 2012 08:14:26 -0000 X-Mailer: git-send-email 1.7.5.1 Xref: news.gmane.org gmane.linux.lib.musl.general:621 Archived-At: Define several functions if _BSD_SOURCE is set. _XOPEN_SOURCE should also be checked but I can't be bothered, because _BSD_SOURCE works. Background for these patches: http://lists.landley.net/pipermail/toybox-landley.net/2012-March/000309.html Georgi Chorbadzhiyski (4): include/stdlib.h: Define clearenv() if (_SVID_SOURCE || _BSD_SOURCE) is set. include/unistd.h: Define sethostname() if _BSD_SOURCE is set. include/unistd.h: Define vfork() if _BSD_SOURCE is set. include/sys/types.h: major(), minor() and makedev() should be defined if _BSD_SOURCE is set. include/stdlib.h | 5 ++++- include/sys/types.h | 5 ++++- include/unistd.h | 10 ++++++++-- 3 files changed, 16 insertions(+), 4 deletions(-) -- 1.7.5.1