openbsd-ports/net/tintin++/patches/patch-utils_c
2007-10-26 22:10:06 +00:00

23 lines
531 B
Plaintext

$OpenBSD: patch-utils_c,v 1.1 2007/10/26 22:10:06 ajacoutot Exp $
--- utils.c.orig Sun Aug 28 16:12:16 1994
+++ utils.c Sat Oct 27 00:05:07 2007
@@ -21,6 +21,8 @@
#include <unistd.h>
#endif
+#include <sys/param.h>
+
void syserr();
/*********************************************/
@@ -56,7 +58,9 @@ void syserr(msg)
char *msg;
{
extern int errno, sys_nerr;
+#if !defined(BSD) || (BSD < 199306)
extern char *sys_errlist[];
+#endif
fprintf(stderr,"ERROR: %s (%d",msg, errno);
if(errno>0 && errno<sys_nerr)