summaryrefslogtreecommitdiff
path: root/graphics/xfractint/files/patch-fracsubr.c
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-12-07 16:09:49 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-12-07 16:09:49 +0000
commit0f15446dffdf5cc4848e6012689fd68bee3f8b41 (patch)
treef9acaf5d1f58fcc597d9bff95d5f17577fb490c3 /graphics/xfractint/files/patch-fracsubr.c
parent- Fix pkg-plist (diff)
- Fix build on -current
PR: 60011 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=95270
Diffstat (limited to 'graphics/xfractint/files/patch-fracsubr.c')
-rw-r--r--graphics/xfractint/files/patch-fracsubr.c71
1 files changed, 71 insertions, 0 deletions
diff --git a/graphics/xfractint/files/patch-fracsubr.c b/graphics/xfractint/files/patch-fracsubr.c
new file mode 100644
index 000000000000..2c72d163cb54
--- /dev/null
+++ b/graphics/xfractint/files/patch-fracsubr.c
@@ -0,0 +1,71 @@
+--- fracsubr.c.orig Tue Sep 7 00:38:10 1999
++++ fracsubr.c Sun Dec 7 11:55:41 2003
+@@ -4,11 +4,9 @@
+ */
+
+ #ifndef XFRACT
+-#include <stdarg.h>
+ #include <sys/timeb.h>
+-#else
+-#include <varargs.h>
+ #endif
++#include <stdarg.h>
+ #include <sys/types.h>
+ #include <time.h>
+ /* see Fractint.c for a description of the "include" hierarchy */
+@@ -1050,27 +1048,14 @@
+
+ */
+
+-#ifndef XFRACT
+ int put_resume(int len, ...)
+-#else
+-int put_resume(va_alist)
+-va_dcl
+-#endif
+ {
+ va_list arg_marker; /* variable arg list */
+ BYTE *source_ptr;
+-#ifdef XFRACT
+- int len;
+-#endif
+
+ if (resume_info == 0)
+ return(-1);
+-#ifndef XFRACT
+ va_start(arg_marker,len);
+-#else
+- va_start(arg_marker);
+- len = va_arg(arg_marker,int);
+-#endif
+ while (len)
+ {
+ source_ptr = (BYTE *)va_arg(arg_marker,char *);
+@@ -1101,27 +1086,14 @@
+ return(0);
+ }
+
+-#ifndef XFRACT
+ int get_resume(int len, ...)
+-#else
+-int get_resume(va_alist)
+-va_dcl
+-#endif
+ {
+ va_list arg_marker; /* variable arg list */
+ BYTE *dest_ptr;
+-#ifdef XFRACT
+- int len;
+-#endif
+
+ if (resume_info == 0)
+ return(-1);
+-#ifndef XFRACT
+ va_start(arg_marker,len);
+-#else
+- va_start(arg_marker);
+- len = va_arg(arg_marker,int);
+-#endif
+ while (len)
+ {
+ dest_ptr = (BYTE *)va_arg(arg_marker,char *);