File spec.diff of Package openntpd
diff -pruN openntpd-3.9p1~/configure.ac openntpd-3.9p1/configure.ac
--- openntpd-3.9p1~/configure.ac 2020-11-19 14:05:41.738252724 +0100
+++ openntpd-3.9p1/configure.ac 2020-11-19 14:08:36.991043324 +0100
@@ -707,7 +707,7 @@ if test "$ac_cv_func_arc4random" != "yes
# Determine OpenSSL header version
AC_MSG_CHECKING([OpenSSL header version])
AC_RUN_IFELSE(
- [
+ [AC_LANG_SOURCE([[
#include <stdio.h>
#include <string.h>
#include <openssl/opensslv.h>
@@ -725,7 +725,7 @@ int main(void) {
exit(0);
}
- ],
+ ]])],
[
ssl_header_ver=`cat conftest.sslincver`
AC_MSG_RESULT($ssl_header_ver)
@@ -742,7 +742,7 @@ int main(void) {
# Determine OpenSSL library version
AC_MSG_CHECKING([OpenSSL library version])
AC_RUN_IFELSE(
- [
+ [AC_LANG_SOURCE([[
#include <stdio.h>
#include <string.h>
#include <openssl/opensslv.h>
@@ -761,7 +761,7 @@ int main(void) {
exit(0);
}
- ],
+ ]])],
[
ssl_library_ver=`cat conftest.ssllibver`
AC_MSG_RESULT($ssl_library_ver)
@@ -778,11 +778,11 @@ int main(void) {
# Sanity check OpenSSL headers
AC_MSG_CHECKING([whether OpenSSL's headers match the library])
AC_RUN_IFELSE(
- [
+ [AC_LANG_SOURCE([[
#include <string.h>
#include <openssl/opensslv.h>
int main(void) { exit(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); }
- ],
+ ]])],
[
AC_MSG_RESULT(yes)
],
@@ -802,11 +802,11 @@ Also see contrib/findssl.sh for help ide
# Check wheter OpenSSL seeds itself
AC_MSG_CHECKING([whether OpenSSL's PRNG is internally seeded])
AC_RUN_IFELSE(
- [
+ [AC_LANG_SOURCE([[
#include <string.h>
#include <openssl/rand.h>
int main(void) { exit(RAND_status() == 1 ? 0 : 1); }
- ],
+ ]])],
[
OPENSSL_SEEDS_ITSELF=yes
AC_MSG_RESULT(yes)
diff -pruN openntpd-3.9p1~/includes.h openntpd-3.9p1/includes.h
--- openntpd-3.9p1~/includes.h 2020-11-19 14:05:41.726252670 +0100
+++ openntpd-3.9p1/includes.h 2020-11-19 14:14:03.032514119 +0100
@@ -19,6 +19,7 @@
#ifndef OPENNTPD_INCLUDES_H
#define OPENNTPD_INCLUDES_H
+/*XXX *WHAT*?! */
#define RCSID(msg) \
static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
@@ -101,4 +102,11 @@ static /**/const char *const rcsid[] = {
#endif
#include "openbsd-compat/openbsd-compat.h"
+#ifdef NEED_ARC4RANDOM_PROTOS
+extern u_int32_t arc4random(void);
+extern void arc4random_addrandom(u_char *, int);
+extern u_int32_t arc4random_uniform(u_int32_t);
+extern void arc4random_buf(void *, size_t);
+#endif
+
#endif /* OPENNTPD_INCLUDES_H */