From 086e31e88d4df3ce43040ef9e48506df954b90cc Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Wed, 19 Oct 2011 12:17:01 +0000 Subject: [PATCH] configure for strptime detection. git-svn-id: file:///svn/unbound/trunk@2514 be551aaa-1e26-0410-a405-d3ace91eadb9 --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 20a63e44a..485b16621 100755 --- a/configure +++ b/configure @@ -16377,6 +16377,8 @@ else #define _XOPEN_SOURCE #include 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; } -- 2.47.2