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[];
|
extern char *sys_errlist[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -228,7 +228,7 @@ static XtTranslations proj_transtbl = NULL;
|
||||||
static XRectangle *rband_rect = NULL;
|
static XRectangle *rband_rect = NULL;
|
||||||
static Boolean mselect_adjust = False;
|
static Boolean mselect_adjust = False;
|
||||||
|
|
||||||
#if !defined(linux)
|
#if !defined(linux) && !defined(__FreeBSD__)
|
||||||
extern char *sys_errlist[];
|
extern char *sys_errlist[];
|
||||||
#endif
|
#endif
|
||||||
char Buf[MAXPATHLEN]; /* Work buffer */
|
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[];
|
extern char *sys_errlist[];
|
||||||
#endif
|
#endif
|
||||||
char Buf[MAXPATHLEN]; /* Work buffer */
|
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[];
|
extern char *sys_errlist[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@
|
||||||
|
|
||||||
BIL_LOAD_INFO bilP_load;
|
BIL_LOAD_INFO bilP_load;
|
||||||
char Buf[MAXPATHLEN];
|
char Buf[MAXPATHLEN];
|
||||||
#if !defined(linux)
|
#if !defined(linux) && !defined(__FreeBSD__)
|
||||||
extern char *sys_errlist[];
|
extern char *sys_errlist[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
static Bool lookForButton(Display *, XEvent *, XPointer);
|
static Bool lookForButton(Display *, XEvent *, XPointer);
|
||||||
|
|
||||||
#if !defined(linux)
|
#if !defined(linux) && !defined(__FreeBSD__)
|
||||||
extern char *sys_errlist[];
|
extern char *sys_errlist[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#include <X11/Xproto.h> /* for X_ChangeHosts */
|
#include <X11/Xproto.h> /* for X_ChangeHosts */
|
||||||
#include <X11/Xatom.h> /* for XA_STRING */
|
#include <X11/Xatom.h> /* for XA_STRING */
|
||||||
|
|
||||||
#if !defined(linux)
|
#if !defined(linux) && !defined(__FreeBSD__)
|
||||||
extern char *sys_errlist[];
|
extern char *sys_errlist[];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#define _NFILE FOPEN_MAX
|
#define _NFILE FOPEN_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(linux)
|
#if !defined(linux) && !defined(__FreeBSD__)
|
||||||
extern char *sys_errlist[];
|
extern char *sys_errlist[];
|
||||||
extern int sys_nerr;
|
extern int sys_nerr;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -105,7 +105,7 @@ SysErrorMsg(
|
||||||
int n
|
int n
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#if !defined(linux)
|
#if !defined(linux) && !defined(__FreeBSD__)
|
||||||
extern char *sys_errlist[];
|
extern char *sys_errlist[];
|
||||||
extern int sys_nerr;
|
extern int sys_nerr;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue