commit 2a59d367d6ff2be09d5cc952f3ece82517062702
parent 3544e5c168eb536ea3ef7244bc415b01e09254ef
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Thu, 30 May 2019 23:35:13 +0300
configure: Fixed 'getsockname' detection with special compiler flags
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/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