summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-11-13 18:58:25 -0800
committerDaniel Stenberg <daniel@haxx.se>2013-11-13 19:00:22 -0800
commit1f0616ea1a89606c6fec7a0855dda12ef5c7a9be (patch)
treefead2ce82a212835b3e0eeb9be59ba792433cf4a /configure.ac
parent55250d2d02a4b27838ff7887cf370bb8ca10783b (diff)
downloadcurl-1f0616ea1a89606c6fec7a0855dda12ef5c7a9be.tar.gz
configure: Fix test with -Werror=implicit-function-declaration
The ipv6 auto-detect test in configure returns a false negative when CFLAGS contains -Werror=implicit-function-declaration. (I have been using this flag to detect code issues that would result in SEGVs on x86_64-cygwin.) Patch-by: Yaakov Selkowitz Bug: http://curl.haxx.se/bug/view.cgi?id=1304
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2b9e7e446..1347cbdee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1065,6 +1065,7 @@ AC_HELP_STRING([--disable-ipv6],[Disable ipv6 support]),
AC_TRY_RUN([ /* is AF_INET6 available? */
#include <sys/types.h>
#include <sys/socket.h>
+#include <stdlib.h> /* for exit() */
main()
{
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)