You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
19 lines
510 B
Diff
19 lines
510 B
Diff
Avoid implicitly declaring select()
|
|
Upstream-Status: Inappropriate [this patch is Darwin-specific; MySQL 5.6 is EOL; MySQL 5.7.4 removed this check for select()]
|
|
|
|
diff --git a/configure.cmake b/configure.cmake
|
|
index dddeb25b6bab..c0fb70db735b 100644
|
|
--- a/configure.cmake
|
|
+++ b/configure.cmake
|
|
@@ -833,9 +833,7 @@ CHECK_C_SOURCE_COMPILES("
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
#else
|
|
-#include <sys/types.h>
|
|
-#include <sys/socket.h>
|
|
-#include <netdb.h>
|
|
+#include <sys/select.h>
|
|
#endif
|
|
int main()
|
|
{
|