comms/efax: fix build with -fno-common; ok ian@
This commit is contained in:
parent
e851327049
commit
914db67450
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.30 2019/07/12 20:43:46 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.31 2021/02/26 20:45:37 naddy Exp $
|
||||
|
||||
COMMENT= small & simple FAX send/receive program
|
||||
|
||||
DISTNAME= efax-0.9
|
||||
REVISION= 3
|
||||
REVISION= 4
|
||||
CATEGORIES= comms
|
||||
|
||||
MAINTAINER= Ian Darwin <ian@openbsd.org>
|
||||
|
14
comms/efax/patches/patch-efaxlib_c
Normal file
14
comms/efax/patches/patch-efaxlib_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-efaxlib_c,v 1.1 2021/02/26 20:45:37 naddy Exp $
|
||||
|
||||
Index: efaxlib.c
|
||||
--- efaxlib.c.orig
|
||||
+++ efaxlib.c
|
||||
@@ -25,6 +25,8 @@ extern t4tab btab [ ( 64 + 27 + 13 ) + 1 ] ;
|
||||
|
||||
short short256 = 256 ; /* for endian-ness detection */
|
||||
|
||||
+uchar reversebits [ 256 ], normalbits [ 256 ] ;
|
||||
+
|
||||
/* Make sure printf strings have only %d escapes and n or fewer
|
||||
of them. Returns 0 if OK, 1 on error. */
|
||||
|
14
comms/efax/patches/patch-efaxlib_h
Normal file
14
comms/efax/patches/patch-efaxlib_h
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-efaxlib_h,v 1.1 2021/02/26 20:45:37 naddy Exp $
|
||||
|
||||
Index: efaxlib.h
|
||||
--- efaxlib.h.orig
|
||||
+++ efaxlib.h
|
||||
@@ -207,7 +207,7 @@ int runor ( short *a, int na, short *b, int nb, short
|
||||
/* Bit reversal lookup tables (note that the `normalbits' array
|
||||
is the one actually used for the bit reversal. */
|
||||
|
||||
-uchar reversebits [ 256 ], normalbits [ 256 ] ;
|
||||
+extern uchar reversebits [ 256 ], normalbits [ 256 ] ;
|
||||
|
||||
void initbittab(void) ;
|
||||
|
Loading…
Reference in New Issue
Block a user