From bbc1b0c9853322da10483f72c020fe0dd83b28fa Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 5 Jun 2012 23:27:58 +1000 Subject: lib/replace: Fix snprintf() override for systems with a broken snprintf() This ensures we provide the replacement functions that we need. Andrew Bartlett --- lib/replace/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/replace/wscript') 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: -- cgit