[pcre-dev] [Bug 2009] sljitProtExecAllocator defines _XOPEN_…

Etusivu
Poista viesti
Lähettäjä: admin
Päiväys:  
Vastaanottaja: pcre-dev
Aihe: [pcre-dev] [Bug 2009] sljitProtExecAllocator defines _XOPEN_SOURCE too late
https://bugs.exim.org/show_bug.cgi?id=2009

--- Comment #2 from Christian Persch (GNOME) <chpe@???> ---
According to the comment this is needed for mkstemp and ftruncate, but it
didn't actually cause a problem when compiling on my machine. I noticed the
problem when I tried to add code for bug
https://bugs.exim.org/show_bug.cgi?id=2010 which needed _GNU_SOURCE which I
tried unsuccessfully to add in the same place.

The way these feature level defines work is that the absolutely need to be
defined before the first libc header is included.

I think replacing this explicit define with using AC_USE_SYSTEM_EXTENSIONS in
configure.ac should work and be the simplest fix.

--
You are receiving this mail because:
You are on the CC list for the bug.