Fix build with clang11

This commit is contained in:
Stefan Eßer 2020-09-01 12:21:30 +00:00
parent 236a71ab19
commit 71ecb265c7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547268
2 changed files with 12 additions and 6 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= ncftp
PORTVERSION= 3.2.6
PORTREVISION?= 1
PORTREVISION?= 2
CATEGORIES= ftp
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/ \
ftp://ftp.mirrorservice.org/sites/ftp.ncftp.com/ncftp/
@ -22,11 +22,6 @@ USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= ac_cv_header_ncurses_h=yes
CFLAGS+= -fcommon
DEPRECATED= Unmaintained and dead upstream, does not build with -fno-common (llvm 11)
EXPIRATION_DATE=2021-04-01
PORTDOCS= *
LIBNCFTP= libncftp.so.3

View File

@ -0,0 +1,11 @@
--- sh_util/gpshare.c.orig 2016-11-12 23:53:39 UTC
+++ sh_util/gpshare.c
@@ -28,7 +28,7 @@
static int gIsAtty1 = 1, gIsAtty2 = 1;
extern int gLoadedBm, gBookmarkMatchMode;
-Bookmark gBm;
+extern Bookmark gBm;
double
FileSize(double size, const char **uStr0, double *uMult0)