[mod_extforward] compile on OSX

define MSG_DONTWAIT and MSG_NOSIGNAL to be no-ops on platforms
without support.  (fd should already be configured O_NONBLOCK
and SIGPIPE signal is configured to be ignored)

(thx avij and wardw)
This commit is contained in:
Glenn Strauss 2017-05-09 18:56:30 -04:00
parent 14656f8f89
commit 8913dc4e59
2 changed files with 4 additions and 3 deletions

View File

@ -74,6 +74,7 @@ common_src=base64.c buffer.c log.c \
http_auth.c \
http_vhostdb.c \
rand.c \
request.c \
splaytree.c status_counter.c \
safe_memclear.c
@ -83,7 +84,7 @@ src = server.c response.c connections.c network.c \
network_freebsd_sendfile.c network_writev.c \
network_solaris_sendfilev.c \
network_darwin_sendfile.c \
configfile.c configparser.c request.c proc_open.c
configfile.c configparser.c proc_open.c
lib_LTLIBRARIES =

View File

@ -1277,10 +1277,10 @@ indicating which element is present :
#ifndef MSG_DONTWAIT
#define MSG_DONTWAIT
#define MSG_DONTWAIT 0
#endif
#ifndef MSG_NOSIGNAL
#define MSG_NOSIGNAL
#define MSG_NOSIGNAL 0
#endif
/* returns 0 if needs to poll, <0 upon error or >0 is protocol vers (success) */