openbsd-ports/sysutils/socket/patches/patch-utils_c

25 lines
673 B
Plaintext

$OpenBSD: patch-utils_c,v 1.2 2012/08/06 20:45:49 naddy Exp $
--- utils.c.orig Wed Sep 9 16:31:16 1992
+++ utils.c Mon Aug 6 22:44:40 2012
@@ -25,8 +25,11 @@ Please read the file COPYRIGHT for further details.
#else
#include <sys/resource.h>
#endif
+#include <stdlib.h>
+#include <unistd.h>
#include "globals.h"
+extern void initialize_siglist A((void)) ;
/* Signal handler, print message and exit */
SIG_HANDLER_RET exitsig(sig)
@@ -70,7 +73,7 @@ char *s ;
/* set up signal handling. All except TSTP, CONT, CLD, and QUIT
* are caught with exitsig(). */
-init_signals()
+void init_signals()
{
int i ;
#ifdef SIG_SETMASK /* only with BSD signals */