Klaus Demo nginx / 37cf05e
Merge of r4693: fixed "sendmsg() failed" alerts on HP-UX. HP-UX needs _HPUX_ALT_XOPEN_SOCKET_API to be defined to be able to use various POSIX versions of networking functions. Notably sendmsg() resulted in "sendmsg() failed (9: Bad file number)" alerts without it. See xopen_networking(7) for more details. Maxim Dounin 9 years ago
2 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4747 CORE_DEPS="$UNIX_DEPS $POSIX_DEPS"
4848 CORE_SRCS="$UNIX_SRCS"
4949 CC_AUX_FLAGS="$CC_AUX_FLAGS -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1"
50 CC_AUX_FLAGS="$CC_AUX_FLAGS -D_HPUX_ALT_XOPEN_SOCKET_API"
5051 ;;
5152
5253 OSF1:*)
1111 #if (NGX_HPUX)
1212 #define _XOPEN_SOURCE
1313 #define _XOPEN_SOURCE_EXTENDED 1
14 #define _HPUX_ALT_XOPEN_SOCKET_API
1415 #endif
1516
1617