ntp: Fix buildworld with MK_OPENSSL=no
Some checks are pending
Cross-build Kernel / amd64 ubuntu-20.04 (clang-12) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-20.04 (clang-12) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-13) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-13) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-22.04 (clang-14) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-14) (push) Waiting to run

Reported by:	wosch
Tested by:	wosch

(cherry picked from commit 2804461adf)
This commit is contained in:
Cy Schubert 2025-12-18 20:59:38 -08:00
parent c4cc8ef864
commit 57f1d519e0
2 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,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

View file

@ -1668,7 +1668,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 */