[Xfce4-commits] <midori:master> Only use signal.h when not building on or for Win32

Christian Dywan noreply at xfce.org
Thu Dec 10 21:56:01 CET 2009


Updating branch refs/heads/master
         to da617bdefd0258ecd1c947fd92bf9210013be08d (commit)
       from 14ec502e969091ae7be516aebba6374cb043cf12 (commit)

commit da617bdefd0258ecd1c947fd92bf9210013be08d
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Dec 10 21:53:43 2009 +0100

    Only use signal.h when not building on or for Win32
    
    The signal API is available but not practically usable.

 wscript |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/wscript b/wscript
index 8547d1e..a7a81ac 100644
--- 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)



More information about the Xfce4-commits mailing list