1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-26 18:50:30 +03:00

s4-waf: replace stdint.h and stdbool.h on systems that don't have them

This commit is contained in:
Andrew Tridgell 2010-03-25 14:32:58 +11:00
parent 7bb5be1324
commit 48fd7802f9
2 changed files with 14 additions and 0 deletions

@ -0,0 +1,2 @@
/* this is a replacement header for a missing system header */
#include "replace.h"

@ -318,3 +318,15 @@ def build(bld):
bld.SAMBA_SUBSYSTEM('LIBREPLACE_GETPASS', 'getpass.c',
enabled=bld.CONFIG_SET('REPLACE_GETPASS'))
# build replacements for stdint.h and stdbool.h if needed
bld.SAMBA_GENERATOR('replace_stdint_h',
rule='cp ${SRC} ${TGT}',
source='hdr_replace.h',
target='stdint.h',
enabled = not bld.CONFIG_SET('HAVE_STDINT_H'))
bld.SAMBA_GENERATOR('replace_stdbool_h',
rule='cp ${SRC} ${TGT}',
source='hdr_replace.h',
target='stdbool.h',
enabled = not bld.CONFIG_SET('HAVE_STDBOOL_H'))