diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-06-05 23:27:58 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-06-06 08:23:10 +0200 |
commit | bbc1b0c9853322da10483f72c020fe0dd83b28fa (patch) | |
tree | 163b77c56024f52027008409ff2475896a75ccf9 /lib | |
parent | f1becfa27b6b4e35541e6df0cafdec0ad47d2e3f (diff) | |
download | samba-bbc1b0c9853322da10483f72c020fe0dd83b28fa.tar.gz samba-bbc1b0c9853322da10483f72c020fe0dd83b28fa.tar.bz2 samba-bbc1b0c9853322da10483f72c020fe0dd83b28fa.zip |
lib/replace: Fix snprintf() override for systems with a broken snprintf()
This ensures we provide the replacement functions that we need.
Andrew Bartlett
Diffstat (limited to 'lib')
-rw-r--r-- | lib/replace/wscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index a5a4486dc9..efde441c41 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -475,7 +475,6 @@ REPLACEMENT_FUNCTIONS = { 'dprintf', 'get_current_dir_name', 'strerror_r', 'clock_gettime'], 'timegm.c': ['timegm'], - 'snprintf.c': ['snprintf'], } @@ -484,6 +483,7 @@ def build(bld): REPLACE_HOSTCC_SOURCE = '' + if not bld.CONFIG_SET('HAVE_C99_VSNPRINTF'): REPLACE_HOSTCC_SOURCE += ' snprintf.c' if bld.CONFIG_SET('REPLACE_STRPTIME'): REPLACE_HOSTCC_SOURCE += ' strptime.c' for filename, functions in REPLACEMENT_FUNCTIONS.iteritems(): for function in functions: |