From 97f7bf25c937f530b9184409c1f2bd8e4f3d2d99 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Mon, 18 Jun 2012 14:11:29 +0000 Subject: 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. --- src/os/unix/ngx_posix_config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/os/unix/ngx_posix_config.h') diff --git a/src/os/unix/ngx_posix_config.h b/src/os/unix/ngx_posix_config.h index 4d432a7e3..4cf90cc98 100644 --- a/src/os/unix/ngx_posix_config.h +++ b/src/os/unix/ngx_posix_config.h @@ -12,6 +12,7 @@ #if (NGX_HPUX) #define _XOPEN_SOURCE #define _XOPEN_SOURCE_EXTENDED 1 +#define _HPUX_ALT_XOPEN_SOCKET_API #endif -- cgit