mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
Add patches to not define putc and getc as a macro
Bump PORTREVISION PR: 29284
This commit is contained in:
parent
8268c79aa5
commit
5dab8f6739
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=47175
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= freeze
|
||||
PORTVERSION= 2.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= archivers
|
||||
MASTER_SITES= ftp://ftp.freesoftware.com/pub/unixfreeware/archive/ \
|
||||
ftp://ftp.warwick.ac.uk/pub/compression/
|
||||
|
11
archivers/freeze/files/patch-freeze.c
Normal file
11
archivers/freeze/files/patch-freeze.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- freeze.c.orig Thu Aug 30 14:45:31 2001
|
||||
+++ freeze.c Thu Aug 30 14:45:37 2001
|
||||
@@ -176,7 +176,7 @@
|
||||
|
||||
/* From compress.c. Replace .Z --> .F etc */
|
||||
|
||||
-void
|
||||
+int
|
||||
main(argc, argv)
|
||||
register int argc;
|
||||
char **argv;
|
24
archivers/freeze/files/patch-freeze.h
Normal file
24
archivers/freeze/files/patch-freeze.h
Normal file
@ -0,0 +1,24 @@
|
||||
--- freeze.h.orig Thu Aug 30 14:40:37 2001
|
||||
+++ freeze.h Thu Aug 30 14:40:54 2001
|
||||
@@ -5,21 +5,6 @@
|
||||
# include <sys/stdtypes.h>
|
||||
#endif
|
||||
|
||||
-#ifndef getc
|
||||
-# ifdef m88k /* Green Hill C library bug. */
|
||||
-# define getc(p) (--(p)->_cnt < 0 ? __filbuf(p) : (int) *(p)->_ptr++)
|
||||
-# else
|
||||
-# define getc(p) (--(p)->_cnt < 0 ? _filbuf(p) : (int) *(p)->_ptr++)
|
||||
-# endif
|
||||
-#endif
|
||||
-#ifndef putc
|
||||
-# ifdef m88k /* Green Hill C library bug. */
|
||||
-# define putc(x, p) (--(p)->_cnt < 0 ? __flsbuf((unsigned char) (x), (p)) : (int) (*(p)->_ptr++ = (unsigned char) (x)))
|
||||
-# else
|
||||
-# define putc(x, p) (--(p)->_cnt < 0 ? _flsbuf((unsigned char) (x), (p)) : (int) (*(p)->_ptr++ = (unsigned char) (x)))
|
||||
-# endif
|
||||
-#endif
|
||||
-
|
||||
#if !defined(MSDOS) && defined(__MSDOS__)
|
||||
# define MSDOS
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user