autodetect sys/syslimits.h

This commit is contained in:
Radim Kolar 2009-08-19 16:20:23 +02:00
parent 8c4ebdba3f
commit 3a9769618a

View File

@ -98,6 +98,8 @@ if conf.CheckCHeader('strings.h'):
conf.env.Append(CPPFLAGS = '-DHAVE_STRINGS_H') conf.env.Append(CPPFLAGS = '-DHAVE_STRINGS_H')
if conf.CheckCHeader('sys/resource.h'): 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'):
conf.env.Append(CPPFLAGS = '-DHAVE_SYS_SYSLIMITS_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"))