diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2004-08-21 16:34:07 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2004-08-21 16:34:07 +0000 |
commit | 142fd293c76cce7eee416ad66e4cc802277725a2 (patch) | |
tree | d996c25035a778f64113103ec3fd8f3b1d407006 /net | |
parent | 54700443952b907cabb94c1cde5888882889c7c2 (diff) | |
download | ports-142fd293c76cce7eee416ad66e4cc802277725a2.tar.gz ports-142fd293c76cce7eee416ad66e4cc802277725a2.zip |
Notes
Diffstat (limited to 'net')
-rw-r--r-- | net/cap/Makefile | 4 | ||||
-rw-r--r-- | net/cap/files/patch-papif.c | 20 |
2 files changed, 20 insertions, 4 deletions
diff --git a/net/cap/Makefile b/net/cap/Makefile index 10b92cc9b816..4a25efe72aad 100644 --- a/net/cap/Makefile +++ b/net/cap/Makefile @@ -60,10 +60,6 @@ READMES= applications/papif applications/lwsrv applications/aufs \ .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile with gcc 3.4.2" -.endif - pre-patch: @(cd ${WRKSRC}; \ for f in ../cap60.patch* ; do ${PATCH} -s -p < $$f ; done) diff --git a/net/cap/files/patch-papif.c b/net/cap/files/patch-papif.c new file mode 100644 index 000000000000..25f47e001577 --- /dev/null +++ b/net/cap/files/patch-papif.c @@ -0,0 +1,20 @@ +--- applications/papif/papif.c.orig Sat Aug 21 18:29:42 2004 ++++ applications/papif/papif.c Sat Aug 21 18:31:17 2004 +@@ -244,6 +244,17 @@ + #define lpd_REPRINT 1 /* forces a reprint */ + #define lpd_ERRORS 2 /* printed with errors */ + ++#ifndef USEVPRINTF ++/* Bletch - gotta do it because pyramids don't work the other way */ ++/* (using _doprnt and &args) and don't have vprintf */ ++/* of course, there will be something that is just one arg larger :-) */ ++/* VARARGS1 */ ++dolog(fmt, a1,a2,a3,a4,a5,a6,a7,a8,a9,aa,ab,ac,ad,ae,af); ++char *fmt; ++#else ++dolog(register char *fmt, ...); ++#endif ++ + #ifdef USESYSLOG + #ifdef __STDC__ + log_i(fmt, a1,a2,a3,a4,a5,a6,a7,a8,a9,aa,ab,ac,ad,ae,af) |