diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2025-12-18 20:59:38 -0800 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2026-01-04 19:40:12 -0800 |
| commit | 57f1d519e02d60c6d50f81aa6098a04a92152ab3 (patch) | |
| tree | c655de976262cda156426fe3c31fb7c94e1e2d6a | |
| parent | c4cc8ef864d198c1011f4ed5521d2debb1443ac9 (diff) | |
ntp: Fix buildworld with MK_OPENSSL=no
Reported by: wosch
Tested by: wosch
(cherry picked from commit 2804461adfc670c78c1dcb9cab6b2191c8d486ec)
| -rw-r--r-- | usr.sbin/ntp/Makefile.inc | 2 | ||||
| -rw-r--r-- | usr.sbin/ntp/config.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ntp/Makefile.inc b/usr.sbin/ntp/Makefile.inc index a4174bb99393..39d543c77d86 100644 --- a/usr.sbin/ntp/Makefile.inc +++ b/usr.sbin/ntp/Makefile.inc @@ -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 diff --git a/usr.sbin/ntp/config.h b/usr.sbin/ntp/config.h index c8e918a9128b..739b99c98bcd 100644 --- a/usr.sbin/ntp/config.h +++ b/usr.sbin/ntp/config.h @@ -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 */ |
