From 0777022d62f096f512c1d093aa3290ce49b8d4e3 Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Sat, 13 Mar 2004 23:31:15 +0000 Subject: [PATCH] (strptime): Use #define _GNU_SOURCE to get the prototype from glibc, use AC_CHECK_DECLS rather than AC_EGREP_HEADER. --- configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index a2dd4b33b..fc402d380 100644 --- a/configure.in +++ b/configure.in @@ -649,10 +649,13 @@ AC_DEFUN([GUILE_FUNC_DECLARED], [ fi ]) -GUILE_FUNC_DECLARED(strptime, time.h) GUILE_FUNC_DECLARED(sleep, unistd.h) GUILE_FUNC_DECLARED(usleep, unistd.h) +AC_CHECK_DECLS([strptime],,, +[#define _GNU_SOURCE /* ask glibc to give strptime prototype */ +#include ]) + ### On some systems usleep has no return value. If it does have one, ### we'd like to return it; otherwise, we'll fake it. AC_CACHE_CHECK([return type of usleep], guile_cv_func_usleep_return_type, -- 2.20.1