mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix to guard _OPENBSD_SOURCE from redefinition.
This commit is contained in:
parent
e2a2dcdfd5
commit
a4f4d7b6ba
4 changed files with 15 additions and 0 deletions
|
|
@ -972,6 +972,10 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef _OPENBSD_SOURCE
|
||||||
|
#define _OPENBSD_SOURCE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef UNBOUND_DEBUG
|
#ifndef UNBOUND_DEBUG
|
||||||
# ifndef NDEBUG
|
# ifndef NDEBUG
|
||||||
# define NDEBUG
|
# define NDEBUG
|
||||||
|
|
|
||||||
2
configure
vendored
2
configure
vendored
|
|
@ -20150,7 +20150,9 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
$ac_includes_default
|
$ac_includes_default
|
||||||
|
|
||||||
|
#ifndef _OPENBSD_SOURCE
|
||||||
#define _OPENBSD_SOURCE 1
|
#define _OPENBSD_SOURCE 1
|
||||||
|
#endif
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
int main(void) {
|
int main(void) {
|
||||||
void* p = reallocarray(NULL, 10, 100);
|
void* p = reallocarray(NULL, 10, 100);
|
||||||
|
|
|
||||||
|
|
@ -1450,7 +1450,9 @@ AC_SUBST(LIBOBJ_WITHOUT_CTIMEARC4)
|
||||||
AC_MSG_CHECKING([for reallocarray])
|
AC_MSG_CHECKING([for reallocarray])
|
||||||
AC_LINK_IFELSE([AC_LANG_SOURCE(AC_INCLUDES_DEFAULT
|
AC_LINK_IFELSE([AC_LANG_SOURCE(AC_INCLUDES_DEFAULT
|
||||||
[[
|
[[
|
||||||
|
#ifndef _OPENBSD_SOURCE
|
||||||
#define _OPENBSD_SOURCE 1
|
#define _OPENBSD_SOURCE 1
|
||||||
|
#endif
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
int main(void) {
|
int main(void) {
|
||||||
void* p = reallocarray(NULL, 10, 100);
|
void* p = reallocarray(NULL, 10, 100);
|
||||||
|
|
@ -1675,6 +1677,10 @@ AHX_CONFIG_EXT_FLAGS
|
||||||
|
|
||||||
dnl includes
|
dnl includes
|
||||||
[
|
[
|
||||||
|
#ifndef _OPENBSD_SOURCE
|
||||||
|
#define _OPENBSD_SOURCE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef UNBOUND_DEBUG
|
#ifndef UNBOUND_DEBUG
|
||||||
# ifndef NDEBUG
|
# ifndef NDEBUG
|
||||||
# define NDEBUG
|
# define NDEBUG
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
29 May 2019: Wouter
|
||||||
|
- Fix to guard _OPENBSD_SOURCE from redefinition.
|
||||||
|
|
||||||
28 May 2019: Wouter
|
28 May 2019: Wouter
|
||||||
- Fix to define _OPENBSD_SOURCE to get reallocarray on NetBSD.
|
- Fix to define _OPENBSD_SOURCE to get reallocarray on NetBSD.
|
||||||
- gitignore config.h.in~.
|
- gitignore config.h.in~.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue