|
@@ -1880,11 +1880,6 @@ AC_DEFUN([CURL_CHECK_FUNC_SELECT], [
|
|
|
#endif
|
|
|
#endif
|
|
|
#ifndef HAVE_WINDOWS_H
|
|
|
-#ifdef HAVE_PROTO_BSDSOCKET_H
|
|
|
-#include <proto/bsdsocket.h>
|
|
|
-struct Library *SocketBase = NULL;
|
|
|
-#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
|
|
|
-#endif
|
|
|
#ifdef HAVE_SYS_SELECT_H
|
|
|
#include <sys/select.h>
|
|
|
#elif defined(HAVE_UNISTD_H)
|
|
@@ -1893,6 +1888,11 @@ struct Library *SocketBase = NULL;
|
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
|
#include <sys/socket.h>
|
|
|
#endif
|
|
|
+#ifdef HAVE_PROTO_BSDSOCKET_H
|
|
|
+#include <proto/bsdsocket.h>
|
|
|
+struct Library *SocketBase = NULL;
|
|
|
+#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
|
|
|
+#endif
|
|
|
#endif
|
|
|
]],[[
|
|
|
select(0, 0, 0, 0, 0);
|
|
@@ -1945,11 +1945,6 @@ struct Library *SocketBase = NULL;
|
|
|
#endif
|
|
|
#endif
|
|
|
#ifndef HAVE_WINDOWS_H
|
|
|
-#ifdef HAVE_PROTO_BSDSOCKET_H
|
|
|
-#include <proto/bsdsocket.h>
|
|
|
-struct Library *SocketBase = NULL;
|
|
|
-#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
|
|
|
-#endif
|
|
|
#ifdef HAVE_SYS_SELECT_H
|
|
|
#include <sys/select.h>
|
|
|
#elif defined(HAVE_UNISTD_H)
|
|
@@ -1958,6 +1953,11 @@ struct Library *SocketBase = NULL;
|
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
|
#include <sys/socket.h>
|
|
|
#endif
|
|
|
+#ifdef HAVE_PROTO_BSDSOCKET_H
|
|
|
+#include <proto/bsdsocket.h>
|
|
|
+struct Library *SocketBase = NULL;
|
|
|
+#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
|
|
|
+#endif
|
|
|
#define SELECTCALLCONV
|
|
|
#endif
|
|
|
#ifndef HAVE_STRUCT_TIMEVAL
|