Fix build with -fno-common

While here add license (GPLv2)
This commit is contained in:
Stefan Eßer 2020-09-22 13:06:59 +00:00
parent 168b96ce12
commit dae78a3e29
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549585
4 changed files with 28 additions and 0 deletions

View File

@ -3,12 +3,16 @@
PORTNAME= hexcurse
PORTVERSION= 1.55
PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= https://BSDforge.com/projects/source/editors/hexcurse/
MAINTAINER= jadawin@FreeBSD.org
COMMENT= Versatile ncurses-based hex editor
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= ncurses
GNU_CONFIGURE= yes

View File

@ -0,0 +1,11 @@
--- include/hex.h.orig 2003-12-23 03:08:25 UTC
+++ include/hex.h
@@ -111,7 +111,7 @@ extern char EBCDIC[256];
#define max(a,b) ((a) >(b) ? (a) : (b))
#endif
-FILE *fpIN, *fpOUT; /* global file ptrs */
+extern FILE *fpIN, *fpOUT; /* global file ptrs */
/* function prototypes */

View File

@ -0,0 +1,13 @@
--- src/file.c.orig 2003-12-15 13:43:47 UTC
+++ src/file.c
@@ -18,7 +18,9 @@
\******************************************************************************/
#include "hex.h"
-/*******************************************************\
+FILE *fpIN, *fpOUT; /* global file ptrs */
+
+/******************************************************* \
* Description: prints out a line of text to the screen*
* the current address line and both the *
* hex and decimal values for the current *