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:
parent
7bb5be1324
commit
48fd7802f9
lib/replace
2
lib/replace/hdr_replace.h
Normal file
2
lib/replace/hdr_replace.h
Normal file
@ -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'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user