Ticket #1028: 0003-define_gnu_source-on-other-glibc-based-platforms.patch

File 0003-define_gnu_source-on-other-glibc-based-platforms.patch, 532 bytes (added by MTecknology@…, 10 years ago)
  • src/os/unix/ngx_posix_config.h

    Date: Sat, 16 Jul 2016 23:52:50 +0100
    From: Steven Chamberlain <stevenc@debian.org>
    Subject: Use _GNU_SOURCE on GNU/kFreeBSD
    
    Define _GNU_SOURCE not only on GNU/Hurd, but also other glibc-based
    platforms including GNU/kFreeBSD.
    a b  
    2121#endif
    2222
    2323
    24 #if (NGX_GNU_HURD)
     24#if defined(__GLIBC__)
    2525#ifndef _GNU_SOURCE
    2626#define _GNU_SOURCE             /* accept4() */
    2727#endif
     28#endif
     29
     30#if (NGX_GNU_HURD)
    2831#define _FILE_OFFSET_BITS       64
    2932#endif
    3033