diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-14 18:45:02 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-10-14 18:45:02 +0000 |
commit | b1fec4bbc5c054bedd15709dc3e5f0c6ddede721 (patch) | |
tree | b20c1db46f59953198d5a0f1477a57d332190332 /main | |
parent | 1a629f8a54982fc50c01125690fe04b4aa2fa924 (diff) |
Add missing ifdefs for test framework and new locale code.
(closes issue #18137)
Reported by: ovi
Patches:
18137_test_framework_ifdef.patch uploaded by wdoekes (license 717)
18137_localelist_warning.patch uploaded by wdoekes (license 717)
Tested by: ovi
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@291791 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/stdtime/localtime.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/stdtime/localtime.c b/main/stdtime/localtime.c index 1e75edd97..4e0fd760c 100644 --- a/main/stdtime/localtime.c +++ b/main/stdtime/localtime.c @@ -250,7 +250,9 @@ static int tzparse P((const char * name, struct state * sp, int lastditch)); static AST_LIST_HEAD_STATIC(zonelist, state); +#ifdef HAVE_NEWLOCALE static AST_LIST_HEAD_STATIC(localelist, locale_entry); +#endif #ifndef TZ_STRLEN_MAX #define TZ_STRLEN_MAX 255 @@ -554,9 +556,12 @@ static void *notify_daemon(void *data) stat(name, &st); lstat(name, &lst); if (st.st_mtime > cur->mtime[0] || lst.st_mtime > cur->mtime[1]) { +#ifdef TEST_FRAMEWORK if (test) { ast_test_status_update(test, "Removing cached TZ entry '%s' because underlying file changed. (%ld != %ld) or (%ld != %ld)\n", name, st.st_mtime, cur->mtime[0], lst.st_mtime, cur->mtime[1]); - } else { + } else +#endif + { ast_log(LOG_NOTICE, "Removing cached TZ entry '%s' because underlying file changed.\n", name); } AST_LIST_REMOVE_CURRENT(list); |