ntp: Fix buildworld with MK_OPENSSL=no

Reported by:	wosch
Tested by:	wosch
MFC after:	1 week
This commit is contained in:
Cy Schubert
2025-12-18 20:59:38 -08:00
parent 1efb6541c6
commit 2804461adf
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ NTPDEFS= -DSYS_FREEBSD
CFLAGS+= ${NTPDEFS} ${DEFS_LOCAL} ${CLOCKDEFS}
.if ${MK_OPENSSL} != "no"
CFLAGS+= -DOPENSSL -DAUTOKEY
CFLAGS+= -DOPENSSL -DAUTOKEY -DUSE_OPENSSL_CRYPTO_RAND
.endif
WARNS?= 0
+2 -1
View File
@@ -1664,7 +1664,8 @@ typedef unsigned int uintptr_t;
#define USE_FSETOWNCTTY 1
/* Use OpenSSL's crypto random functions */
#define USE_OPENSSL_CRYPTO_RAND 1
/* We define this in Makefile.inc instead */
/* #undef USE_OPENSSL_CRYPTO_RAND */
/* OK to use snprintb()? */
/* #undef USE_SNPRINTB */