Edit

kc3-lang/libevent/evconfig-private.h.in

Branch :

  • Show log

    Commit

  • Author : Maya Rashish
    Date : 2017-09-23 06:57:16
    Hash : 99a3887d
    Message : Define __EXT_POSIX2 for QNX POSIX 1003.2 extension is necessary for getopt interface. Reported here [1] (not mine, I can't test) [1]: https://mail-index.netbsd.org/pkgsrc-users/2017/09/20/msg025601.html Closes: #563 (cherry-pick)

  • evconfig-private.h.in
  • /* evconfig-private.h template - see "Configuration Header Templates" */
    /* in AC manual.  Kevin Bowling <kevin.bowling@kev009.com */
    #ifndef EVCONFIG_PRIVATE_H_INCLUDED_
    #define EVCONFIG_PRIVATE_H_INCLUDED_
    
    /* Enable extensions on AIX 3, Interix.  */
    #ifndef _ALL_SOURCE
    # undef _ALL_SOURCE
    #endif
    /* Enable GNU extensions on systems that have them.  */
    #ifndef _GNU_SOURCE
    # undef _GNU_SOURCE
    #endif
    /* Enable threading extensions on Solaris.  */
    #ifndef _POSIX_PTHREAD_SEMANTICS
    # undef _POSIX_PTHREAD_SEMANTICS
    #endif
    /* Enable extensions on HP NonStop.  */
    #ifndef _TANDEM_SOURCE
    # undef _TANDEM_SOURCE
    #endif
    /* Enable general extensions on Solaris.  */
    #ifndef __EXTENSIONS__
    # undef __EXTENSIONS__
    #endif
    
    /* Number of bits in a file offset, on hosts where this is settable. */
    #undef _FILE_OFFSET_BITS
    /* Define for large files, on AIX-style hosts. */
    #undef _LARGE_FILES
    
    /* Define to 1 if on MINIX. */
    #ifndef _MINIX
    #undef _MINIX
    #endif
    
    /* Define to 2 if the system does not provide POSIX.1 features except with
       this defined. */
    #ifndef _POSIX_1_SOURCE
    #undef _POSIX_1_SOURCE
    #endif
    
    /* Define to 1 if you need to in order for `stat' and other things to work. */
    #ifndef _POSIX_SOURCE
    #undef _POSIX_SOURCE
    #endif
    
    /* Enable POSIX.2 extensions on QNX for getopt */
    #ifdef __QNX__
    # ifndef __EXT_POSIX2
    #  define __EXT_POSIX2
    # endif
    #endif
    
    #endif