]> spindle.queued.net Git - midori/commitdiff
Look for inet_aton and inet_addr in more header files
authorRivo Nurges <rix@estpak.ee>
Wed, 17 Feb 2010 20:59:34 +0000 (21:59 +0100)
committerChristian Dywan <christian@twotoasts.de>
Wed, 17 Feb 2010 22:19:17 +0000 (23:19 +0100)
This is needed for BSD like systems.

wscript

diff --git a/wscript b/wscript
index 461baa0cd55082de364daf794ddef45d9ffe0c8d..fbbdbb062c6a221a884a33641fbcb7bf8d913586 100644 (file)
--- a/wscript
+++ b/wscript
@@ -257,8 +257,8 @@ def configure (conf):
         conf.define ('HAVE_NETDB_H', [0,1][conf.check (header_name='netdb.h')])
         conf.check (header_name='sys/wait.h')
         conf.check (header_name='sys/select.h')
-        conf.check (function_name='inet_aton')
-        conf.check (function_name='inet_addr')
+        conf.check (function_name='inet_aton', header_name='sys/types.h sys/socket.h netinet/in.h arpa/inet.h')
+        conf.check (function_name='inet_addr', header_name='sys/types.h sys/socket.h netinet/in.h arpa/inet.h')
     conf.define ('HAVE_OSX', int(sys.platform == 'darwin'))
     if Options.platform == 'win32':
         conf.env.append_value ('LINKFLAGS', '-mwindows')