Преглед изворни кода

-use portable MHD_socket_pair

Christian Grothoff пре 9 година
родитељ
комит
e3994e2a7f
1 измењених фајлова са 1 додато и 5 уклоњено
  1. 1 5
      src/microhttpd/response.c

+ 1 - 5
src/microhttpd/response.c

@@ -710,11 +710,7 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response,
     char *buf;
     int sv[2];
 
-    /* FIXME: this is non-portable for now; W32 port pending... */
-    if (0 != socketpair (AF_UNIX,
-                         SOCK_STREAM,
-                         0,
-                         sv))
+    if (! MHD_socket_pair_ (sv))
     {
       free (urh);
       return MHD_NO;