summaryrefslogtreecommitdiff
path: root/math/xfractint/patches/patch-ah
blob: 47c0b4879374c4833bf04f739a42b90223059173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
$NetBSD: patch-ah,v 1.2 2012/10/26 20:39:16 joerg Exp $

--- fractint.c.orig	1999-09-06 10:38:10.000000000 +0000
+++ fractint.c
@@ -3,14 +3,17 @@
                         Main Routine
 */
 
+#if !defined(USE_VARARGS)
+#include <stdarg.h>
+#else
+#include <varargs.h>
+#endif
+
 #include <string.h>
 #include <time.h>
 #include <signal.h>
 #ifndef XFRACT
 #include <io.h>
-#include <stdarg.h>
-#else
-#include <varargs.h>
 #endif
 #include <ctype.h>
 
@@ -202,7 +205,7 @@ static void my_floating_point_err(int si
       overflow = 1;
 }
 
-void main(int argc, char **argv)
+int main(int argc, char **argv)
 {
    int     resumeflag;
    int     kbdchar;                     /* keyboard key-hit value       */
@@ -540,7 +543,7 @@ int check_key()
      timer(1,NULL,int width)            decoder
      timer(2)                           encoder
   */
-#ifndef XFRACT
+#if !defined(USE_VARARGS)
 int timer(int timertype,int(*subrtn)(),...)
 #else
 int timer(va_alist)
@@ -555,7 +558,7 @@ va_dcl
    int i;
    int do_bench;
 
-#ifndef XFRACT
+#if !defined(USE_VARARGS)
    va_start(arg_marker,subrtn);
 #else
    int timertype;