mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- getauxval test for ppc64 linux compatibility.
git-svn-id: file:///svn/unbound/trunk@3293 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
1b44c9393e
commit
95eda05cfe
5 changed files with 26 additions and 6 deletions
|
|
@ -474,22 +474,24 @@ getentropy_fallback(void *buf, size_t len)
|
||||||
|
|
||||||
HD(cnt);
|
HD(cnt);
|
||||||
}
|
}
|
||||||
#ifdef AT_RANDOM
|
#ifdef HAVE_GETAUXVAL
|
||||||
|
# ifdef AT_RANDOM
|
||||||
/* Not as random as you think but we take what we are given */
|
/* Not as random as you think but we take what we are given */
|
||||||
p = (char *) getauxval(AT_RANDOM);
|
p = (char *) getauxval(AT_RANDOM);
|
||||||
if (p)
|
if (p)
|
||||||
HR(p, 16);
|
HR(p, 16);
|
||||||
#endif
|
# endif
|
||||||
#ifdef AT_SYSINFO_EHDR
|
# ifdef AT_SYSINFO_EHDR
|
||||||
p = (char *) getauxval(AT_SYSINFO_EHDR);
|
p = (char *) getauxval(AT_SYSINFO_EHDR);
|
||||||
if (p)
|
if (p)
|
||||||
HR(p, pgs);
|
HR(p, pgs);
|
||||||
#endif
|
# endif
|
||||||
#ifdef AT_BASE
|
# ifdef AT_BASE
|
||||||
p = (char *) getauxval(AT_BASE);
|
p = (char *) getauxval(AT_BASE);
|
||||||
if (p)
|
if (p)
|
||||||
HD(p);
|
HD(p);
|
||||||
#endif
|
# endif
|
||||||
|
#endif /* HAVE_GETAUXVAL */
|
||||||
|
|
||||||
SHA512_Final(results, &ctx);
|
SHA512_Final(results, &ctx);
|
||||||
memcpy((char*)buf + i, results, min(sizeof(results), len - i));
|
memcpy((char*)buf + i, results, min(sizeof(results), len - i));
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,9 @@
|
||||||
/* Whether getaddrinfo is available */
|
/* Whether getaddrinfo is available */
|
||||||
#undef HAVE_GETADDRINFO
|
#undef HAVE_GETADDRINFO
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `getauxval' function. */
|
||||||
|
#undef HAVE_GETAUXVAL
|
||||||
|
|
||||||
/* Define to 1 if you have the `getentropy' function. */
|
/* Define to 1 if you have the `getentropy' function. */
|
||||||
#undef HAVE_GETENTROPY
|
#undef HAVE_GETENTROPY
|
||||||
|
|
||||||
|
|
|
||||||
11
configure
vendored
11
configure
vendored
|
|
@ -18254,6 +18254,17 @@ _ACEOF
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
|
for ac_func in getauxval
|
||||||
|
do :
|
||||||
|
ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
|
||||||
|
if test "x$ac_cv_func_getauxval" = xyes; then :
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define HAVE_GETAUXVAL 1
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
|
||||||
|
|
|
||||||
|
|
@ -1021,6 +1021,7 @@ if test "$USE_NSS" = "no"; then
|
||||||
AC_LIBOBJ(sha512)
|
AC_LIBOBJ(sha512)
|
||||||
])
|
])
|
||||||
AC_CHECK_HEADERS([sys/sysctl.h],,, [AC_INCLUDES_DEFAULT])
|
AC_CHECK_HEADERS([sys/sysctl.h],,, [AC_INCLUDES_DEFAULT])
|
||||||
|
AC_CHECK_FUNCS([getauxval])
|
||||||
AC_SEARCH_LIBS([clock_gettime], [rt])
|
AC_SEARCH_LIBS([clock_gettime], [rt])
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,6 @@
|
||||||
|
5 January 2015: Wouter
|
||||||
|
- getauxval test for ppc64 linux compatibility.
|
||||||
|
|
||||||
9 December 2014: Wouter
|
9 December 2014: Wouter
|
||||||
- svn trunk has 1.5.2 in development.
|
- svn trunk has 1.5.2 in development.
|
||||||
- config.guess and config.sub update from libtoolize.
|
- config.guess and config.sub update from libtoolize.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue