[Boost-bugs] [Boost C++ Libraries] #7847: BUG: on linux, the non-standard <wait.h> is included, breaking build with musl libc

Subject: [Boost-bugs] [Boost C++ Libraries] #7847: BUG: on linux, the non-standard <wait.h> is included, breaking build with musl libc
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-04 10:34:01


#7847: BUG: on linux, the non-standard <wait.h> is included, breaking build with
musl libc
----------------------------+-----------------------------------------------
 Reporter: anonymous | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: Building Boost | Version: Boost 1.52.0
 Severity: Showstopper | Keywords:
----------------------------+-----------------------------------------------
 wait.h is not linux-specific, but GLIBC specific.
 here's the patch that makes it work.
 without this patch, it is not possible to build boost on any non-glibc
 linux platform.

 --- boost_1_52_0.org/tools/build/v2/engine/execunix.c 2013-01-04
 09:45:43.165000002 +0000
 +++ boost_1_52_0/tools/build/v2/engine/execunix.c 2013-01-04
 09:46:20.095000004 +0000
 @@ -18,7 +18,7 @@
  #include <sys/times.h>
  #include <sys/wait.h>

 -#if defined(sun) || defined(__sun) || defined(linux)
 +#if defined(sun) || defined(__sun) || defined(__GLIBC__)
      #include <wait.h>
  #endif

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7847>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC