Skip to content

Commit

Permalink
lib/replace: Fix snprintf() override for systems with a broken snprin…
Browse files Browse the repository at this point in the history
…tf()

This ensures we provide the replacement functions that we need.

Andrew Bartlett
  • Loading branch information
abartlet committed Jun 6, 2012
1 parent f1becfa commit bbc1b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/replace/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ REPLACEMENT_FUNCTIONS = {
'dprintf', 'get_current_dir_name',
'strerror_r', 'clock_gettime'],
'timegm.c': ['timegm'],
'snprintf.c': ['snprintf'],
}


Expand All @@ -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:
Expand Down

0 comments on commit bbc1b0c

Please sign in to comment.