Explorar el Código

configure: Fixed 'getsockname' detection with special compiler flags

Evgeny Grin (Karlson2k) hace 6 años
padre
commit
2a59d367d6
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      configure.ac

+ 3 - 0
configure.ac

@@ -805,6 +805,9 @@ AC_CHECK_DECLS([getsockname],
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
 #ifdef HAVE_WINSOCK2_H
 #include <winsock2.h>
 #endif