From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11913 Path: news.gmane.org!.POSTED!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: Missing include of in sched.h? Date: Fri, 8 Sep 2017 10:49:40 +0200 Message-ID: <20170908084937.GW15263@port70.net> References: <1504856816.12460.7.camel@embedded.rocks> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1504860614 3486 195.159.176.226 (8 Sep 2017 08:50:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2017 08:50:14 +0000 (UTC) User-Agent: Mutt/1.6.0 (2016-04-01) To: musl@lists.openwall.com Original-X-From: musl-return-11926-gllmg-musl=m.gmane.org@lists.openwall.com Fri Sep 08 10:49:59 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dqEyy-0008Dh-Mv for gllmg-musl@m.gmane.org; Fri, 08 Sep 2017 10:49:48 +0200 Original-Received: (qmail 30440 invoked by uid 550); 8 Sep 2017 08:49:53 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 30419 invoked from network); 8 Sep 2017 08:49:53 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: <1504856816.12460.7.camel@embedded.rocks> Xref: news.gmane.org gmane.linux.lib.musl.general:11913 Archived-At: * J=F6rg Krause [2017-09-08 09:46:56 +0200]: > latest Boost 1.65.1 fails to compile with a musl toolchain [1]. >=20 > The issue is that Boost uses the `CPU_ZERO` macro which expands to > `memset()` [2]. >=20 > The Linux Programmer's Manual state that memset() is defined in > string.h [3]. >=20 > Therefore, shouldn't shed.h include string.h? >=20 it should probably include string.h and stdlib.h under _GNU_SOURCE but note that would mean lot of namespace pollution for c++ which always defines _GNU_SOURCE > [1] https://github.com/boostorg/fiber/pull/142 > [2] https://git.musl-libc.org/cgit/musl/tree/include/sched.h#n110 > [3] http://man7.org/linux/man-pages/man3/memset.3.html >=20 > Best regards, > J=F6rg Krause