Browse Source

mgetty: fix compile

Waldemar Brodkorb 7 years ago
parent
commit
8cc11b215d
2 changed files with 76 additions and 0 deletions
  1. 38 0
      package/mgetty/patches/patch-g3_g3cat_c
  2. 38 0
      package/mgetty/patches/patch-g3_pbm2g3_c

+ 38 - 0
package/mgetty/patches/patch-g3_g3cat_c

@@ -0,0 +1,38 @@
+--- mgetty-1.1.36.orig/g3/g3cat.c	2005-02-27 20:03:37.000000000 +0100
++++ mgetty-1.1.36/g3/g3cat.c	2017-06-03 23:40:23.804404768 +0200
+@@ -44,7 +44,7 @@ static int b_written = 0;		/* bytes of a
+ 					/* written */
+ 
+ #ifdef __GNUC__
+-inline
++static inline
+ #endif
+ void putcode _P2( (code, len), int code, int len )
+ {
+@@ -67,7 +67,7 @@ void putcode _P2( (code, len), int code,
+ }
+ 
+ #ifdef __GNUC__
+-inline
++static inline
+ #endif
+ void putwhitespan _P1( (l), int l )
+ {
+@@ -98,7 +98,7 @@ void putwhitespan _P1( (l), int l )
+ }
+ 
+ #ifdef __GNUC__
+-inline
++static inline
+ #endif
+ void putblackspan _P1( (l), int l )
+ {
+@@ -129,7 +129,7 @@ void putblackspan _P1( (l), int l )
+ }
+ 
+ #ifdef __GNUC__
+-inline
++static inline
+ #endif
+ void puteol _P0( void )			/* write byte-aligned EOL */
+ {

+ 38 - 0
package/mgetty/patches/patch-g3_pbm2g3_c

@@ -0,0 +1,38 @@
+--- mgetty-1.1.36.orig/g3/pbm2g3.c	1998-05-07 13:32:04.000000000 +0200
++++ mgetty-1.1.36/g3/pbm2g3.c	2017-06-03 23:32:07.020481555 +0200
+@@ -40,7 +40,7 @@ static unsigned int out_hibit = 0;
+ static int out_byte_tab[ 256 ];			/* for g3 byte reversal */
+ 
+ #ifdef __GNUC__
+-inline
++static inline
+ #endif
+ void putcode _P2( (code, len), int code, int len )
+ {
+@@ -60,7 +60,7 @@ void putcode _P2( (code, len), int code,
+ }
+ 
+ #ifdef __GNUC__
+-inline
++static inline
+ #endif
+ void puteol _P0( void )			/* write byte-aligned EOL */
+ {
+@@ -69,7 +69,7 @@ void puteol _P0( void )			/* write byte-
+ }
+ 
+ #ifdef __GNUC__
+-inline
++static inline
+ #endif
+ void putwhitespan _P1( (l), int l )
+ {
+@@ -100,7 +100,7 @@ void putwhitespan _P1( (l), int l )
+ }
+ 
+ #ifdef __GNUC__
+-inline
++static inline
+ #endif
+ void putblackspan _P1( (l), int l )
+ {