[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)
personal/stbuehler/mod-csrf
Glenn Strauss 6 years ago
parent 14656f8f89
commit 8913dc4e59
  1. 3
      src/Makefile.am
  2. 4
      src/mod_extforward.c

@ -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 =

@ -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) */

Loading…
Cancel
Save