FreeBSD does not need extern char *sys_errlist[]
Add preprocessor directives not to try to redefine sys_errlist[] or sys_nerr There are already definitions: extern __const char *__const sys_errlist[]; extern __const int sys_nerr; in <stdio.h> Actually we should have something like NeedSysErrlist in imake definitions to get rid of those #ifdefs.
This commit is contained in:
committed by
Jon Trulson
parent
7bdb847210
commit
a35975a334
@@ -37,7 +37,7 @@
|
||||
#include <X11/Xproto.h> /* for X_ChangeHosts */
|
||||
#include <X11/Xatom.h> /* for XA_STRING */
|
||||
|
||||
#if !defined(linux)
|
||||
#if !defined(linux) && !defined(__FreeBSD__)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#define _NFILE FOPEN_MAX
|
||||
#endif
|
||||
|
||||
#if !defined(linux)
|
||||
#if !defined(linux) && !defined(__FreeBSD__)
|
||||
extern char *sys_errlist[];
|
||||
extern int sys_nerr;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user