mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-02 10:16:19 +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:
parent
cbd3255bf8
commit
0777022d62
1 changed files with 4 additions and 1 deletions
|
@ -649,10 +649,13 @@ AC_DEFUN([GUILE_FUNC_DECLARED], [
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
GUILE_FUNC_DECLARED(strptime, time.h)
|
|
||||||
GUILE_FUNC_DECLARED(sleep, unistd.h)
|
GUILE_FUNC_DECLARED(sleep, unistd.h)
|
||||||
GUILE_FUNC_DECLARED(usleep, 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,
|
### On some systems usleep has no return value. If it does have one,
|
||||||
### we'd like to return it; otherwise, we'll fake it.
|
### we'd like to return it; otherwise, we'll fake it.
|
||||||
AC_CACHE_CHECK([return type of usleep], guile_cv_func_usleep_return_type,
|
AC_CACHE_CHECK([return type of usleep], guile_cv_func_usleep_return_type,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue