Only use signal.h when not building on or for Win32

The signal API is available but not practically usable.
This commit is contained in:
Christian Dywan 2009-12-10 21:53:43 +01:00
parent 14ec502e96
commit da617bdefd

View file

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