git: 09e3d68290b0 - main - net/ptpd2: Fix build with net-snmp
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Jan 2026 01:50:29 UTC
The branch main has been updated by skreuzer:
URL: https://cgit.FreeBSD.org/ports/commit/?id=09e3d68290b0beaf96f3bdcd4f54aaf3a1d72358
commit 09e3d68290b0beaf96f3bdcd4f54aaf3a1d72358
Author: Steven Kreuzer <skreuzer@FreeBSD.org>
AuthorDate: 2026-01-18 01:46:59 +0000
Commit: Steven Kreuzer <skreuzer@FreeBSD.org>
CommitDate: 2026-01-18 01:49:42 +0000
net/ptpd2: Fix build with net-snmp
net-snmp-config --cflags injects -Werror=declaration-after-statement
which causes builds to fail as the source has variable declarations
after statements (valid in C99 but not C89).
Downgrade this from a fatal error to a warning
---
net/ptpd2/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/ptpd2/Makefile b/net/ptpd2/Makefile
index 0248157471b0..9a56cc9f7dd5 100644
--- a/net/ptpd2/Makefile
+++ b/net/ptpd2/Makefile
@@ -29,6 +29,8 @@ OPTIONS_DEFAULT=SNMP
SNMP_CONFIGURE_ENABLE= snmp
SNMP_LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
+CFLAGS+= -Wno-error=declaration-after-statement
+
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${CP} ${FILESDIR}/*.sample ${STAGEDIR}${ETCDIR}