1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Fix build on 5.x and unbreak

PR:		ports/59848
Submitted by:	Ports Fury
This commit is contained in:
Pav Lucistnik 2003-12-07 23:23:03 +00:00
parent 6bd449375a
commit 3196d00a78
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95299
4 changed files with 52 additions and 18 deletions

View File

@ -19,10 +19,4 @@ USE_IMAKE= yes
MAN1= chimera.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 501000
BROKEN= "Does not compile"
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -9,14 +9,3 @@
/*
* OSF1 needs -D_BSD
--- ./compat/Imakefile.org Mon Mar 13 19:48:00 1995
+++ ./compat/Imakefile Wed Jun 11 12:42:13 1997
@@ -31,7 +31,7 @@
DependTarget()
#else
-all:
+all::
depend::
#endif

View File

@ -0,0 +1,11 @@
--- ./compat/Imakefile.org Mon Mar 13 19:48:00 1995
+++ ./compat/Imakefile Wed Jun 11 12:42:13 1997
@@ -31,7 +31,7 @@
DependTarget()
#else
-all:
+all::
depend::
#endif

View File

@ -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.