aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-06 22:05:27 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-06 22:05:27 +0000
commite3994e2a7f7a3aa2766f5494fbd6d8b05e475772 (patch)
tree1a1c120d110fafec364f30546846a937d85b6b3e
parent41a8c73e4c074d8de04ae81eea6bd505c7311dca (diff)
downloadlibmicrohttpd-e3994e2a7f7a3aa2766f5494fbd6d8b05e475772.tar.gz
libmicrohttpd-e3994e2a7f7a3aa2766f5494fbd6d8b05e475772.zip
-use portable MHD_socket_pair
-rw-r--r--src/microhttpd/response.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index fc814e61..a1a300ea 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -710,11 +710,7 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response,
710 char *buf; 710 char *buf;
711 int sv[2]; 711 int sv[2];
712 712
713 /* FIXME: this is non-portable for now; W32 port pending... */ 713 if (! MHD_socket_pair_ (sv))
714 if (0 != socketpair (AF_UNIX,
715 SOCK_STREAM,
716 0,
717 sv))
718 { 714 {
719 free (urh); 715 free (urh);
720 return MHD_NO; 716 return MHD_NO;