ncftp: fix the build with -fno-common

OK naddy@
This commit is contained in:
cwen 2021-02-01 01:21:36 +00:00
parent 25284374c4
commit 74bcac5072
2 changed files with 19 additions and 3 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.47 2020/03/10 03:31:45 daniel Exp $
# $OpenBSD: Makefile,v 1.48 2021/02/01 01:21:36 cwen Exp $
COMMENT= FTP client with advanced user interface
DISTNAME= ncftp-3.2.6
CATEGORIES= net
HOMEPAGE= http://www.ncftp.com/ncftp/
REVISION= 1
HOMEPAGE= https://www.ncftp.com/ncftp/
REVISION= 2
# Artistic
PERMIT_PACKAGE= Yes

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-sh_util_gpshare_c,v 1.1 2021/02/01 01:21:36 cwen Exp $
Fix -fno-common build failure.
Index: sh_util/gpshare.c
--- sh_util/gpshare.c.orig
+++ 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)