]> spindle.queued.net Git - midori/commitdiff
Only use signal.h when not building on or for Win32
authorChristian Dywan <christian@twotoasts.de>
Thu, 10 Dec 2009 20:53:43 +0000 (21:53 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 10 Dec 2009 20:55:35 +0000 (21:55 +0100)
The signal API is available but not practically usable.

wscript

diff --git a/wscript b/wscript
index 8547d1e1d7cd88f68d36e9119441a2485a3cd009..a7a81ac05a75e17a34639cf47c93e5facb507d81 100644 (file)
--- a/wscript
+++ b/wscript
@@ -237,7 +237,6 @@ def configure (conf):
     conf.env['docs'] = option_enabled ('docs')
 
     conf.check (header_name='unistd.h')
-    conf.check (header_name='signal.h')
     if not conf.env['HAVE_UNIQUE']:
         if Options.platform == 'win32':
             conf.check (lib='ws2_32')
@@ -251,6 +250,8 @@ def configure (conf):
     conf.define ('HAVE_OSX', int(sys.platform == 'darwin'))
     if Options.platform == 'win32':
         conf.env.append_value ('LINKFLAGS', '-mwindows')
+    else:
+        conf.check (header_name='signal.h')
 
     conf.define ('PACKAGE_VERSION', VERSION)
     conf.define ('PACKAGE_NAME', APPNAME)