openbsd-ports/sysutils/socket/patches/patch-globals_h
2011-07-08 11:19:35 +00:00

26 lines
636 B
Plaintext

$OpenBSD: patch-globals_h,v 1.1 2011/07/08 11:19:35 jasper Exp $
--- globals.h.orig Sun Aug 30 21:04:27 1992
+++ globals.h Fri Jul 8 13:17:27 2011
@@ -8,7 +8,12 @@ Please read the file COPYRIGHT for further details.
*/
#include "patchlevel.h"
+
+#if HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
+
/* globals for socket */
#define IN 0 /* standard input */
@@ -49,4 +54,7 @@ extern int quitflag ;
extern int crlfflag ;
extern int active_socket ;
extern char *progname ;
-extern char *sys_errlist[], *sys_siglist[] ;
+
+#if !(defined(BSD) && (BSD >=199306))
+ extern char *sys_errlist[], *sys_siglist[] ;
+#endif