mirror of
https://github.com/samba-team/samba.git
synced 2025-06-21 03:17:08 +03:00
Revert "replace: use replace for non 'samba' compliant strptime"
This reverts commit 4ea7d4694a8353fc55ecd12cb09b9c91ffde7b3f. A better fix will follow. metze
This commit is contained in:
parent
4430d6a0d9
commit
e3a3c0d764
@ -317,25 +317,6 @@ removeea setea
|
|||||||
addmain=False,
|
addmain=False,
|
||||||
msg='Checking for working strptime'):
|
msg='Checking for working strptime'):
|
||||||
conf.DEFINE('REPLACE_STRPTIME', 1)
|
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)
|
conf.CHECK_CODE('gettimeofday(NULL, NULL)', 'HAVE_GETTIMEOFDAY_TZ', execute=False)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user