mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix endian.h include for OpenBSD.
git-svn-id: file:///svn/unbound/trunk@3196 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
d0bf841680
commit
ec3b6d8bf7
5 changed files with 14 additions and 7 deletions
|
|
@ -89,6 +89,9 @@
|
||||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
#undef HAVE_DLFCN_H
|
#undef HAVE_DLFCN_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the <endian.h> header file. */
|
||||||
|
#undef HAVE_ENDIAN_H
|
||||||
|
|
||||||
/* Define to 1 if you have the `endprotoent' function. */
|
/* Define to 1 if you have the `endprotoent' function. */
|
||||||
#undef HAVE_ENDPROTOENT
|
#undef HAVE_ENDPROTOENT
|
||||||
|
|
||||||
|
|
|
||||||
2
configure
vendored
2
configure
vendored
|
|
@ -13692,7 +13692,7 @@ CC="$lt_save_CC"
|
||||||
|
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h
|
for ac_header in stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h
|
||||||
do :
|
do :
|
||||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||||
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,7 @@ AC_CHECK_TOOL(STRIP, strip)
|
||||||
ACX_LIBTOOL_C_ONLY
|
ACX_LIBTOOL_C_ONLY
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_CHECK_HEADERS([stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h],,, [AC_INCLUDES_DEFAULT])
|
AC_CHECK_HEADERS([stdarg.h stdbool.h netinet/in.h sys/param.h sys/socket.h sys/uio.h sys/resource.h arpa/inet.h syslog.h netdb.h sys/wait.h pwd.h glob.h grp.h login_cap.h winsock2.h ws2tcpip.h endian.h],,, [AC_INCLUDES_DEFAULT])
|
||||||
|
|
||||||
# check for types.
|
# check for types.
|
||||||
# Using own tests for int64* because autoconf builtin only give 32bit.
|
# Using own tests for int64* because autoconf builtin only give 32bit.
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
21 July 2014: Wouter
|
||||||
|
- Fix endian.h include for OpenBSD.
|
||||||
|
|
||||||
16 July 2014: Wouter
|
16 July 2014: Wouter
|
||||||
- And Fix#596: Bail out of unbound-control dump_infra when ssl
|
- And Fix#596: Bail out of unbound-control dump_infra when ssl
|
||||||
write fails.
|
write fails.
|
||||||
|
|
|
||||||
|
|
@ -53,15 +53,16 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy.
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
# include <sys/types.h> /* attempt to define endianness (solaris) */
|
# include <sys/types.h> /* attempt to define endianness (solaris) */
|
||||||
#endif
|
#endif
|
||||||
#ifdef linux
|
#if defined(linux) || defined(__OpenBSD__)
|
||||||
|
# ifdef HAVE_ENDIAN_H
|
||||||
# include <endian.h> /* attempt to define endianness */
|
# include <endian.h> /* attempt to define endianness */
|
||||||
|
# else
|
||||||
|
# include <machine/endian.h> /* on older OpenBSD */
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
|
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__)
|
||||||
#include <sys/endian.h> /* attempt to define endianness */
|
#include <sys/endian.h> /* attempt to define endianness */
|
||||||
#endif
|
#endif
|
||||||
#ifdef __OpenBSD__
|
|
||||||
#include <machine/endian.h> /* attempt to define endianness */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* random initial value */
|
/* random initial value */
|
||||||
static uint32_t raninit = (uint32_t)0xdeadbeef;
|
static uint32_t raninit = (uint32_t)0xdeadbeef;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue