summaryrefslogtreecommitdiff
path: root/www/chimera/files/patch-libhtmlw::HTML-PSformat.c
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-12-07 23:23:03 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-12-07 23:23:03 +0000
commit3196d00a786e7dbeec379dd120d794eb25cf21fe (patch)
treef05c8c8fe42b9faefbb782e66bb6d112a451ef64 /www/chimera/files/patch-libhtmlw::HTML-PSformat.c
parent* Update to 0.4 (diff)
- Fix build on 5.x and unbreak
PR: ports/59848 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=95299
Diffstat (limited to 'www/chimera/files/patch-libhtmlw::HTML-PSformat.c')
-rw-r--r--www/chimera/files/patch-libhtmlw::HTML-PSformat.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/www/chimera/files/patch-libhtmlw::HTML-PSformat.c b/www/chimera/files/patch-libhtmlw::HTML-PSformat.c
new file mode 100644
index 000000000000..154d1bff46c1
--- /dev/null
+++ b/www/chimera/files/patch-libhtmlw::HTML-PSformat.c
@@ -0,0 +1,40 @@
+--- libhtmlw/HTML-PSformat.c.orig Sun May 4 17:08:32 1997
++++ libhtmlw/HTML-PSformat.c Sun Nov 30 11:03:28 2003
+@@ -41,7 +41,11 @@
+ * permission of John Bradley.
+ */
+
++#if 0
+ #include <varargs.h>
++#else
++#include <stdarg.h>
++#endif
+
+ #include <stdio.h>
+ #include <ctype.h>
+@@ -204,9 +208,13 @@
+ }
+ #else /* not BROKEN_SOLARIS_COMPILER_STDARG */
+ static int
++#if 0
+ PSprintf (format, va_alist)
+ char *format;
+ va_dcl
++#else
++PSprintf (char *format, ...)
++#endif
+ {
+ int len;
+ char *s;
+@@ -222,7 +230,11 @@
+ }
+ PS_string = s;
+ }
++#if 0
+ va_start (args);
++#else
++ va_start (args, format);
++#endif
+ len = vsprintf (PS_string + PS_len, format, args);
+ /* this is a hack to make it work on systems were vsprintf(s,...)
+ * returns s, instead of the len.