From 2770369de4372bb3b959b5e3eed35f5457e3f815 Mon Sep 17 00:00:00 2001 From: brooks Date: Fri, 2 Mar 2018 22:34:53 +0000 Subject: Work around the lack of definition of union semun per POSIX. When feasible do this by adding -D_WANT_SEMUN to CFLAGS or CXXFLAGS. Where this fails due to ports not honoring C*FLAGS, patch using __FreeBSD_version to enable the definition. PR: 224300, 224443 (exp-run) Approved by: portmgr (antoine) Exp-run: antoine Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14137 --- ftp/gftp/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'ftp') diff --git a/ftp/gftp/Makefile b/ftp/gftp/Makefile index 551722073df5..c1d7ab95e8c7 100644 --- a/ftp/gftp/Makefile +++ b/ftp/gftp/Makefile @@ -15,6 +15,7 @@ LICENSE= GPLv2 USES= pathfix pkgconfig tar:bzip2 ssl GNU_CONFIGURE= yes USE_GNOME= glib20 gtk20 +CFLAGS+= -D_WANT_SEMUN OPTIONS_DEFINE= NLS OPTIONS_SUB= yes -- cgit