Skip to content

Commit

Permalink
proftpd: fix implicit declaration of memset_s to fix solaris build
Browse files Browse the repository at this point in the history
mod_sftp breaks on solaris like platforms due to the declaration
of memset_s not being seen by the compiler.
Define __STDC_WANT_LIB_EXT1__ to 1 to make sure it is seen.
  • Loading branch information
nros committed Dec 23, 2023
1 parent 7f221df commit 5cfb876
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion net/proftpd/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.99 2023/12/20 17:05:00 wiz Exp $
# $NetBSD: Makefile,v 1.100 2023/12/23 23:30:57 nros Exp $

.include "../../net/proftpd/Makefile.common"

Expand Down Expand Up @@ -39,6 +39,9 @@ MODULES+= \

CONFIGURE_ARGS+= --with-shared=${MODULES:ts:}

# needed for memset_s
CFLAGS.SunOS+= -D__STDC_WANT_LIB_EXT1__=1

RCD_SCRIPTS= proftpd
REPLACE_PERL+= contrib/ftpasswd
REPLACE_PERL+= contrib/ftpmail
Expand Down

0 comments on commit 5cfb876

Please sign in to comment.