ncftp: fix the build with -fno-common
OK naddy@
This commit is contained in:
parent
25284374c4
commit
74bcac5072
@ -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
|
||||
|
16
net/ncftp/patches/patch-sh_util_gpshare_c
Normal file
16
net/ncftp/patches/patch-sh_util_gpshare_c
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user