1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-31 17:30:24 +02:00

(strptime): Use #define _GNU_SOURCE to get the

prototype from glibc, use AC_CHECK_DECLS rather than AC_EGREP_HEADER.
This commit is contained in:
Kevin Ryde 2004-03-13 23:31:15 +00:00
parent cbd3255bf8
commit 0777022d62

View file

@ -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 <time.h>])
### 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,