Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jan 2026 20:00:40 +0000
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a71b64468796 - stable/15 - ntp: Fix buildworld with MK_OPENSSL=no
Message-ID:  <695c1868.3fe9b.7866b9d2@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/15 has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=a71b6446879644b9742d6fcb75cb113d09144fd7

commit a71b6446879644b9742d6fcb75cb113d09144fd7
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2025-12-19 04:59:38 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2026-01-05 20:00:02 +0000

    ntp: Fix buildworld with MK_OPENSSL=no
    
    Reported by:    wosch
    Tested by:      wosch
    
    (cherry picked from commit 2804461adfc670c78c1dcb9cab6b2191c8d486ec)
---
 usr.sbin/ntp/Makefile.inc | 2 +-
 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 5801d91aac46..85340a5a9eea 100644
--- a/usr.sbin/ntp/Makefile.inc
+++ b/usr.sbin/ntp/Makefile.inc
@@ -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
diff --git a/usr.sbin/ntp/config.h b/usr.sbin/ntp/config.h
index 3d6a1364dd10..6b0ef0b6ae6a 100644
--- a/usr.sbin/ntp/config.h
+++ b/usr.sbin/ntp/config.h
@@ -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 */


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?695c1868.3fe9b.7866b9d2>