comms/efax: fix build with -fno-common; ok ian@

This commit is contained in:
naddy 2021-02-26 20:45:37 +00:00
parent e851327049
commit 914db67450
3 changed files with 30 additions and 2 deletions

View File

@ -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>

View 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. */

View 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) ;