mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
22 lines
480 B
Plaintext
22 lines
480 B
Plaintext
|
--- misc.c.orig Fri Jul 16 10:17:56 1993
|
||
|
+++ misc.c Sun Nov 24 18:29:09 1996
|
||
|
@@ -34,6 +34,7 @@
|
||
|
#include <ctype.h>
|
||
|
#include <pwd.h>
|
||
|
#include <errno.h>
|
||
|
+#include <sys/param.h>
|
||
|
|
||
|
#include <X11/Xatom.h>
|
||
|
#include <X11/cursorfont.h>
|
||
|
@@ -776,8 +777,10 @@
|
||
|
char *SysErrorMsg (n)
|
||
|
int n;
|
||
|
{
|
||
|
+#if !((defined(BSD) && (BSD >= 199103)))
|
||
|
extern char *sys_errlist[];
|
||
|
extern int sys_nerr;
|
||
|
+#endif
|
||
|
|
||
|
return ((n >= 0 && n < sys_nerr) ? sys_errlist[n] : "unknown error");
|
||
|
}
|