aboutsummaryrefslogtreecommitdiffstats
path: root/net/sup
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2003-08-02 10:03:03 +0800
committermaho <maho@FreeBSD.org>2003-08-02 10:03:03 +0800
commit6b2899a651fddd8a53638027bdd4e1faa86b6339 (patch)
tree774ef776e12cb6a7a8694d75fad544b99dedea64 /net/sup
parentd6ce9f68fb972509c783eb57f6f4b5548ac6fae5 (diff)
downloadfreebsd-ports-gnome-6b2899a651fddd8a53638027bdd4e1faa86b6339.tar.gz
freebsd-ports-gnome-6b2899a651fddd8a53638027bdd4e1faa86b6339.tar.zst
freebsd-ports-gnome-6b2899a651fddd8a53638027bdd4e1faa86b6339.zip
Fix build on gcc-3.3.x
Submitted by: Simon Barner <barner@in.tum.de>
Diffstat (limited to 'net/sup')
-rw-r--r--net/sup/files/patch-aa22
-rw-r--r--net/sup/files/patch-vprintf.c28
2 files changed, 28 insertions, 22 deletions
diff --git a/net/sup/files/patch-aa b/net/sup/files/patch-aa
index 6702b5f6f45a..141fcc3bfd80 100644
--- a/net/sup/files/patch-aa
+++ b/net/sup/files/patch-aa
@@ -2742,28 +2742,6 @@ diff -c /var/tmp/sup/supmsg.h sup/supmsg.h
EXTERN long scantime; /* time that collection was scanned */
/* msgneed */
-diff -c /var/tmp/sup/vprintf.c sup/vprintf.c
-*** vprintf.c Fri Aug 20 17:46:35 1993
---- sup/vprintf.c Thu Apr 6 15:26:03 1995
-***************
-*** 118,126 ****
---- 118,133 ----
- {
- FILE fakebuf;
-
-+ #ifdef __hpux
-+ fakebuf._flag = _IODUMMY+_IOWRT;/* no _IOWRT: avoid stdio bug */
-+ fakebuf._base = fakebuf._ptr = s;
-+ fakebuf._cnt = n-1;
-+ fakebuf.__fileL = fakebuf.__fileH = 0xff;
-+ #else
- fakebuf._flag = _IOSTRG+_IOWRT; /* no _IOWRT: avoid stdio bug */
- fakebuf._ptr = s;
- fakebuf._cnt = n-1;
-+ #endif
- _doprnt(fmt, args, &fakebuf);
- fakebuf._cnt++;
- putc('\0', &fakebuf);
*** /dev/null Sun Aug 13 11:14:38 1995
--- daemon.c Sun Aug 13 19:59:10 1995
***************
diff --git a/net/sup/files/patch-vprintf.c b/net/sup/files/patch-vprintf.c
new file mode 100644
index 000000000000..83308ae1fb49
--- /dev/null
+++ b/net/sup/files/patch-vprintf.c
@@ -0,0 +1,28 @@
+--- vprintf.c.orig Sat Aug 21 02:46:35 1993
++++ vprintf.c Wed Jul 30 02:59:04 2003
+@@ -59,7 +59,7 @@
+ */
+
+ #include <stdio.h>
+-#include <varargs.h>
++#include <stdarg.h>
+
+ #ifdef DOPRINT_VA
+ /*
+@@ -118,9 +118,16 @@
+ {
+ FILE fakebuf;
+
++#ifdef __hpux
++ fakebuf._flag = _IODUMMY+_IOWRT;/* no _IOWRT: avoid stdio bug */
++ fakebuf._base = fakebuf._ptr = s;
++ fakebuf._cnt = n-1;
++ fakebuf.__fileL = fakebuf.__fileH = 0xff;
++#else
+ fakebuf._flag = _IOSTRG+_IOWRT; /* no _IOWRT: avoid stdio bug */
+ fakebuf._ptr = s;
+ fakebuf._cnt = n-1;
++#endif
+ _doprnt(fmt, args, &fakebuf);
+ fakebuf._cnt++;
+ putc('\0', &fakebuf);