mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
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:
parent
7bdb847210
commit
a35975a334
9 changed files with 9 additions and 9 deletions
|
@ -140,7 +140,7 @@ static void register_palette_info(
|
|||
** **
|
||||
**************************************************************************/
|
||||
|
||||
#if !defined(linux)
|
||||
#if !defined(linux) && !defined(__FreeBSD__)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
|
|
|
@ -228,7 +228,7 @@ static XtTranslations proj_transtbl = NULL;
|
|||
static XRectangle *rband_rect = NULL;
|
||||
static Boolean mselect_adjust = False;
|
||||
|
||||
#if !defined(linux)
|
||||
#if !defined(linux) && !defined(__FreeBSD__)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
char Buf[MAXPATHLEN]; /* Work buffer */
|
||||
|
|
|
@ -93,7 +93,7 @@ static void mult_module_selected(
|
|||
** **
|
||||
**************************************************************************/
|
||||
|
||||
#if !defined(linux)
|
||||
#if !defined(linux) && !defined(__FreeBSD__)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
char Buf[MAXPATHLEN]; /* Work buffer */
|
||||
|
|
|
@ -180,7 +180,7 @@ static void notify_proj_save_as_okCB(
|
|||
** **
|
||||
**************************************************************************/
|
||||
|
||||
#if !defined(linux)
|
||||
#if !defined(linux) && !defined(__FreeBSD__)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
|
||||
BIL_LOAD_INFO bilP_load;
|
||||
char Buf[MAXPATHLEN];
|
||||
#if !defined(linux)
|
||||
#if !defined(linux) && !defined(__FreeBSD__)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
|
||||
static Bool lookForButton(Display *, XEvent *, XPointer);
|
||||
|
||||
#if !defined(linux)
|
||||
#if !defined(linux) && !defined(__FreeBSD__)
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -105,7 +105,7 @@ SysErrorMsg(
|
|||
int n
|
||||
)
|
||||
{
|
||||
#if !defined(linux)
|
||||
#if !defined(linux) && !defined(__FreeBSD__)
|
||||
extern char *sys_errlist[];
|
||||
extern int sys_nerr;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue