/* * Copyright (C) Igor Sysoev */ #ifndef _NGX_POSIX_CONFIG_H_INCLUDED_ #define _NGX_POSIX_CONFIG_H_INCLUDED_ #if 0 #define _XOPEN_SOURCE #define _XOPEN_SOURCE_EXTENDED 1 #endif #if 0 #define _REENTRANT #endif #include #include #if (NGX_HAVE_UNISTD_H) #include #endif #if (NGX_HAVE_INTTYPES_H) #include #endif #include #include /* offsetof() */ #include #include #include #include #include #include #include #include #if (NGX_HAVE_SYS_FILIO_H) #include /* FIONBIO */ #endif #include /* FIONBIO */ #include #include #include #include #include #include #include #include #include #include /* TCP_NODELAY */ #include #include #include #if (NGX_HAVE_LIMITS_H) #include /* IOV_MAX */ #endif #ifndef IOV_MAX #define IOV_MAX 16 #endif #include #if (NGX_HAVE_POLL) #include #endif #if (NGX_HAVE_KQUEUE) #include #endif #if (NGX_HAVE_DEVPOLL) #include #include #endif #if (__FreeBSD__) && (__FreeBSD_version < 400017) #include /* ALIGN() */ /* FreeBSD 3.x has no CMSG_SPACE() at all and has the broken CMSG_DATA() */ #undef CMSG_SPACE #define CMSG_SPACE(l) (ALIGN(sizeof(struct cmsghdr)) + ALIGN(l)) #undef CMSG_DATA #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + ALIGN(sizeof(struct cmsghdr))) #endif #define NGX_POSIX_IO 1 #endif /* _NGX_POSIX_CONFIG_H_INCLUDED_ */