Revert "lib/replace: Fix snprintf() override for systems with a broken snprintf()"
authorStefan Metzmacher <metze@samba.org>
Mon, 11 Jun 2012 06:56:09 +0000 (08:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2012 07:34:13 +0000 (09:34 +0200)
This reverts commit bbc1b0c9853322da10483f72c020fe0dd83b28fa.

A more generic fix will follow.

metze

lib/replace/wscript

index 549e14b4dc5cb1f1b98cd4ad95eb11283d19c3ea..7a44329fec826cb978e5600374a82e7cece77a7d 100644 (file)
@@ -475,6 +475,7 @@ REPLACEMENT_FUNCTIONS = {
                   'dprintf', 'get_current_dir_name',
                   'strerror_r', 'clock_gettime'],
     'timegm.c': ['timegm'],
+    'snprintf.c': ['snprintf'],
     }
 
 
@@ -483,7 +484,6 @@ 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: