Mon Mar 2 16:59:15 1998 Jason Molenda (crash@bugshack.cygnus.com)
authorJason Molenda <jmolenda@apple.com>
Tue, 3 Mar 1998 01:00:59 +0000 (01:00 +0000)
committerJason Molenda <jmolenda@apple.com>
Tue, 3 Mar 1998 01:00:59 +0000 (01:00 +0000)
        * rdi-share/etherdrv.c (sys_errlist): Add correct decl for Linux.

gdb/ChangeLog
gdb/rdi-share/etherdrv.c

index 49667a8..3c391e5 100644 (file)
@@ -1,3 +1,7 @@
+Mon Mar  2 16:59:15 1998  Jason Molenda  (crash@bugshack.cygnus.com)
+
+       * rdi-share/etherdrv.c (sys_errlist): Add correct decl for Linux.
+
 Mon Mar  2 16:51:44 1998  Jason Molenda  (crash@bugshack.cygnus.com)
 
        * Makefile.in (YYFILES): Remove in maintainer-clean, not distclean.
index 976b2f5..3c7f254 100644 (file)
 #ifndef COMPILING_ON_WINDOWS
 /* these two might not work for windows */
   extern int sys_nerr;
+#ifdef __linux__
+  extern const char *const sys_errlist[];
+#else
   extern char *sys_errlist[];
 #endif
+#endif
 
 #ifndef UNUSED
 # define UNUSED(x) (x = x)      /* Silence compiler warnings */