Browse Source

fix build for gcc3.3

Michael van Elst 22 years ago
parent
commit
9f60451b9d
2 changed files with 42 additions and 1 deletions
  1. 41 0
      kerberos/kerberos.patch
  2. 1 1
      kerberos/kerberos.spec

+ 41 - 0
kerberos/kerberos.patch

@@ -303,3 +303,44 @@
  char *
  onoff(bool)
  	int bool;
+--- krb5-1.2.8/src/appl/telnet/telnet/commands.c.dist	2003-05-16 12:24:35.000000000 +0200
++++ krb5-1.2.8/src/appl/telnet/telnet/commands.c	2003-05-16 12:31:39.000000000 +0200
+@@ -60,7 +60,7 @@
+ #include <netdb.h>
+ #include <ctype.h>
+ #include <pwd.h>
+-#include <varargs.h>
++#include <stdarg.h>
+ #include <errno.h>
+ #ifdef HAVE_VFORK_H
+ #include <vfork.h>
+@@ -115,7 +115,7 @@
+ extern char **genget();
+ extern int Ambiguous();
+ 
+-static call();
++static call(void *va_alist, ...);
+ 
+ typedef struct {
+ 	char	*name;		/* command name */
+@@ -2698,8 +2698,7 @@
+ 
+     /*VARARGS1*/
+     static
+-call(va_alist)
+-    va_dcl
++call(void *va_alist, ...)
+ {
+     va_list ap;
+     typedef int (*intrtn_t)();
+@@ -2707,8 +2706,8 @@
+     char *args[100];
+     int argno = 0;
+ 
+-    va_start(ap);
+-    routine = (va_arg(ap, intrtn_t));
++    va_start(ap, va_alist);
++    routine = (intrtn_t) va_alist;
+     while ((args[argno++] = va_arg(ap, char *)) != 0) {
+ 	;
+     }

+ 1 - 1
kerberos/kerberos.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
 Group:        Cryptography
 License:      MIT
 Version:      1.2.8
-Release:      20030410
+Release:      20030516
 
 #   list of sources
 Source0:      http://www.mirrors.wiretapped.net/security/cryptography/apps/kerberos/krb5-mit/unix/krb5-%{version}.tar.gz