autodetect sys/wait.h header

This commit is contained in:
Radim Kolar 2009-08-19 16:24:03 +02:00
parent 3a9769618a
commit dfa9fdc50d

View File

@ -100,6 +100,8 @@ if conf.CheckCHeader('sys/resource.h'):
conf.env.Append(CPPFLAGS = '-DHAVE_SYS_RESOURCE_H') conf.env.Append(CPPFLAGS = '-DHAVE_SYS_RESOURCE_H')
if conf.CheckCHeader('sys/syslimits.h'): if conf.CheckCHeader('sys/syslimits.h'):
conf.env.Append(CPPFLAGS = '-DHAVE_SYS_SYSLIMITS_H') conf.env.Append(CPPFLAGS = '-DHAVE_SYS_SYSLIMITS_H')
if conf.CheckCHeader('sys/wait.h'):
conf.env.Append(CPPFLAGS = '-DHAVE_SYS_WAIT_H')
env.Append(CPPFLAGS = '-DSIZEOF_CHAR='+conf.sizeOf("char")) env.Append(CPPFLAGS = '-DSIZEOF_CHAR='+conf.sizeOf("char"))
env.Append(CPPFLAGS = '-DSIZEOF_LONG='+conf.sizeOf("long")) env.Append(CPPFLAGS = '-DSIZEOF_LONG='+conf.sizeOf("long"))
env.Append(CPPFLAGS = '-DSIZEOF_SHORT='+conf.sizeOf("short")) env.Append(CPPFLAGS = '-DSIZEOF_SHORT='+conf.sizeOf("short"))