git: db3a524c8a96 - main - bsnmpd: FreeBSD has strlcpy(3)

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Tue, 16 Jul 2024 05:12:50 UTC
The branch main has been updated by kevans:

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

commit db3a524c8a965d3adcf03fe08b28b37f63e1126b
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2024-07-16 05:12:29 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2024-07-16 05:12:29 +0000

    bsnmpd: FreeBSD has strlcpy(3)
    
    Fixes the fortified build of bsnmp, which otherwise fails because of the
    shadowed declaration.
    
    Reviewed by:    kib (earlier version), markj
    Sponsored by:   Klara, Inc.
    Sponsored by:   Stormshield
    Differential Revision:  https://reviews.freebsd.org/D45976
---
 usr.sbin/bsnmpd/Makefile.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr.sbin/bsnmpd/Makefile.inc b/usr.sbin/bsnmpd/Makefile.inc
index 876d6f891e7f..7f666307467c 100644
--- a/usr.sbin/bsnmpd/Makefile.inc
+++ b/usr.sbin/bsnmpd/Makefile.inc
@@ -1,2 +1,3 @@
+CFLAGS+=	-DHAVE_STRLCPY
 PACKAGE=	bsnmp
 .include "../Makefile.inc"