pkgsrc/sysutils/socket/patches/patch-ae
2004-05-10 16:36:33 +00:00

39 lines
907 B
Text

$NetBSD: patch-ae,v 1.2 2004/05/10 16:36:33 minskim Exp $
--- siglist.c.orig 1992-08-30 08:50:48.000000000 -0500
+++ siglist.c
@@ -23,6 +23,7 @@ Foundation, 675 Mass Ave, Cambridge, MA
#include <stdio.h>
#include <signal.h>
+#include <stdlib.h>
#if !defined (NSIG)
# if defined (_NSIG)
@@ -32,12 +33,17 @@ Foundation, 675 Mass Ave, Cambridge, MA
# endif /* !_NSIG */
#endif /* !NSIG */
-char *sys_siglist[NSIG];
+#if HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
-extern *malloc ();
+#if !(defined(BSD) && (BSD >=199306)) && !defined(__linux__)
+char *sys_siglist[NSIG];
+#endif
-initialize_siglist ()
+void initialize_siglist ()
{
+#if !(defined(BSD) && (BSD >=199306))
register int i;
for (i = 0; i < NSIG; i++)
@@ -219,4 +225,5 @@ initialize_siglist ()
sprintf (sys_siglist[i], "Unknown Signal #%d", i);
}
}
+#endif /* !(defined(BSD) && (BSD >=199306)) */
}