mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- fix strptime implicit declaration error on OpenBSD.
git-svn-id: file:///svn/unbound/trunk@3171 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
0c31e816f5
commit
8786ae15b4
3 changed files with 3 additions and 2 deletions
2
configure
vendored
2
configure
vendored
|
|
@ -15053,7 +15053,7 @@ else
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
|
|
||||||
#define _XOPEN_SOURCE
|
#define _XOPEN_SOURCE 600
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
int main(void) { struct tm tm; char *res;
|
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);
|
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);
|
||||||
|
|
|
||||||
|
|
@ -316,7 +316,7 @@ AC_DEFUN([AC_CHECK_STRPTIME_WORKS],
|
||||||
AC_MSG_CHECKING(whether strptime works)
|
AC_MSG_CHECKING(whether strptime works)
|
||||||
if test c${cross_compiling} = cno; then
|
if test c${cross_compiling} = cno; then
|
||||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
#define _XOPEN_SOURCE
|
#define _XOPEN_SOURCE 600
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
int main(void) { struct tm tm; char *res;
|
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);
|
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);
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
dependencies, from OpenBSD. arc4_lock and sha512 in compat.
|
dependencies, from OpenBSD. arc4_lock and sha512 in compat.
|
||||||
This makes arc4random available on all platforms, except when
|
This makes arc4random available on all platforms, except when
|
||||||
compiled with LIBNSS (it uses libNSS crypto random).
|
compiled with LIBNSS (it uses libNSS crypto random).
|
||||||
|
- fix strptime implicit declaration error on OpenBSD.
|
||||||
|
|
||||||
4 July 2014: Wouter
|
4 July 2014: Wouter
|
||||||
- Fix #593: segfault or crash upon rotating logfile.
|
- Fix #593: segfault or crash upon rotating logfile.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue