]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fix strptime detection.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 19 Oct 2011 12:16:41 +0000 (12:16 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 19 Oct 2011 12:16:41 +0000 (12:16 +0000)
git-svn-id: file:///svn/unbound/trunk@2513 be551aaa-1e26-0410-a405-d3ace91eadb9

configure.ac
doc/Changelog

index 7868d3288eae5e2074b649ec77f9ecfbe04c0894..f10b25a37aa322f2bf7b10c41d053d6a2fbe3957 100644 (file)
@@ -668,6 +668,8 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
 #define _XOPEN_SOURCE
 #include <time.h>
 int main(void) { struct tm tm; char *res;
+res = strptime("2010-07-15T00:00:00+00:00", "%t%Y%t-%t%m%t-%t%d%tT%t%H%t:%t%M%t:%t%S%t", &tm);
+if (!res) return 2;
 res = strptime("20070207111842", "%Y%m%d%H%M%S", &tm);
 if (!res) return 1; return 0; }
 ]])] , [eval "ac_cv_c_strptime_works=yes"], [eval "ac_cv_c_strptime_works=no"])
index 9d1e3915a63bfd6627aff52204c5bc884768f975..a56aac1512ec5e6912e9120786547c94fe4ff026 100644 (file)
@@ -1,3 +1,7 @@
+19 October 2011: Wouter
+       - fix unbound-anchor for broken strptime on OSX lion, detected
+         in configure.
+
 17 October 2011: Wouter
        - better documentation for inform_super (Thanks Yang Zhe).