FreeBSD does not need extern char *sys_errlist[]
authorMarcin Cieslak <saper@saper.info>
Wed, 15 Aug 2012 17:46:01 +0000 (19:46 +0200)
committerJon Trulson <jon@radscan.com>
Wed, 15 Aug 2012 21:58:46 +0000 (15:58 -0600)
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.

cde/programs/dtappbuilder/src/ab/palette_stubs.c
cde/programs/dtappbuilder/src/ab/proj.c
cde/programs/dtappbuilder/src/ab/projP_utils.c
cde/programs/dtappbuilder/src/ab/proj_utils.c
cde/programs/dtappbuilder/src/libABil/bil_loadfile.c
cde/programs/dtcm/dtcm/dnd.c
cde/programs/dtimsstart/remote.c
cde/programs/dtimsstart/start.c
cde/programs/dtprintinfo/libUI/MotifUI/Debug.c

index 8f8dd864babf126ea3476ee677e8e15135f44f02..da9e97a44d084b4f59fc6bf5e541bd39093f5a91 100644 (file)
@@ -140,7 +140,7 @@ static void         register_palette_info(
 **                                                                      **
 **************************************************************************/
 
-#if !defined(linux)
+#if !defined(linux) && !defined(__FreeBSD__)
 extern char     *sys_errlist[];
 #endif
 
index a2cb1fc5cda5b77ed7722e1c5b637af47158b3a4..d2bfa97c347674962ed18a561bd7189f1c3201da 100644 (file)
@@ -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 */
index e44764bdb49f2c975952c50ea8d4d8436e6e7267..d0e690081cbd956a6c597c542134cc2ad1885a3f 100644 (file)
@@ -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 */
index 0256c0f0aa265472ebf0a2b0b458a317b3b68722..6754a1a6dc18fb7b638a9cf9f1810061b189d69e 100644 (file)
@@ -180,7 +180,7 @@ static void notify_proj_save_as_okCB(
 **                                                                      **
 **************************************************************************/
 
-#if !defined(linux)
+#if !defined(linux) && !defined(__FreeBSD__)
 extern char             *sys_errlist[];
 #endif
 
index 08a876a4b5af8468dc5a6e96c0a6fb53e580c9af..def0f7ff05edeac0c3c6ef02b419a5047cd3463a 100644 (file)
@@ -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
 
index d4c6be61c6419565940e3b866aacbfb8cdd40d94..eb5fb8a209b3765265ae22a81c12bcf0c61722aa 100644 (file)
@@ -72,7 +72,7 @@
 
 static Bool lookForButton(Display *, XEvent *, XPointer);
 
-#if !defined(linux)
+#if !defined(linux) && !defined(__FreeBSD__)
 extern char    *sys_errlist[];
 #endif
 
index 819a265fa1631d5fddb6083166ef7dbf5820bcb0..476c7d007a147cbf499a520326a4851c81eb55cb 100644 (file)
@@ -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
 
index 68800512f9e22afbd4546552fdcfa06a007be817..085403a06fd988493b097a944a70b71401a912a1 100644 (file)
@@ -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
index 615ee9ca9a00fdd07ceec2ae4b1bc11a3496cc8d..e6fd10b2b98e2066349fd6a67dbd9b26019703ff 100644 (file)
@@ -105,7 +105,7 @@ SysErrorMsg(
    int n
    )
 {
-#if !defined(linux)
+#if !defined(linux) && !defined(__FreeBSD__)
     extern char *sys_errlist[];
     extern int sys_nerr;
 #endif