diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-25 14:32:58 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:27:06 +1000 |
commit | 48fd7802f9788e69ade6d252e1f718be6b77438c (patch) | |
tree | 97290f40a2413c93617518e458927899d7864b4d /lib/replace/wscript | |
parent | 7bb5be1324bbdc3af51ac21820f2f25e7df2fca9 (diff) | |
download | samba-48fd7802f9788e69ade6d252e1f718be6b77438c.tar.gz samba-48fd7802f9788e69ade6d252e1f718be6b77438c.tar.bz2 samba-48fd7802f9788e69ade6d252e1f718be6b77438c.zip |
s4-waf: replace stdint.h and stdbool.h on systems that don't have them
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index e457c5f845..8424319a1a 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -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')) |