Greg Steuck <[email protected]> writes:

> On Sun, Apr 23, 2017 at 12:07 AM Greg Steuck <[email protected]> wrote:
>
>> I found some references to BSD_SOURCE and POSIX_C_SOURCE as being related,
>> but I don't see a cookie-cutter recipe to borrow, so I thought I should ask.
>>
>
> Adding CXXFLAGS="-D_POSIX_SOURCE" to CONFIGURE_ENV is doing the trick. Is
> this the canonical approach?

Not really, because then you're overriding CXXFLAGS (-O2 -pipe by
default).

CONFIGURE_ENV =         CPPFLAGS="-D_POSIX_C_SOURCE=200809L"

works and would teach the build to see anything recent and in
posix.  See /usr/include/sys/cdefs.h for a list of the values you can
pass for _POSIX_C_SOURCE.

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to