Revert "replace: use replace for non 'samba' compliant strptime"
authorStefan Metzmacher <metze@samba.org>
Wed, 13 Jun 2012 10:41:57 +0000 (12:41 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2012 07:34:13 +0000 (09:34 +0200)
This reverts commit 4ea7d4694a8353fc55ecd12cb09b9c91ffde7b3f.

A better fix will follow.

metze

lib/replace/wscript

index 215fc32383e5ff23979940acd5b0e27e0f440c41..aa69c47316651bcdc9728ecbbfce6bc0cf5ddb23 100644 (file)
@@ -317,25 +317,6 @@ removeea setea
                            addmain=False,
                            msg='Checking for working strptime'):
         conf.DEFINE('REPLACE_STRPTIME', 1)
-    else:
-       conf.CHECK_CODE('''
-                        const char *s = "20070414101546Z";
-                        char *ret;
-                        struct tm t;
-                        memset(&t, 0, sizeof(t));
-                        ret = strptime(s, "%Y%m%d%H%M%S", &t);
-                        if (ret == NULL || t.tm_wday != 6) {
-                            return 0;
-                        } else {
-                            return 1;
-                        }
-                        ''',
-                        msg="Checking correct behavior of strptime",
-                        headers = 'time.h',
-                        execute = True,
-                        define_ret = True,
-                        define = 'REPLACE_STRPTIME',
-                        )
 
     conf.CHECK_CODE('gettimeofday(NULL, NULL)', 'HAVE_GETTIMEOFDAY_TZ', execute=False)