/[xforms]/xforms/lib/errmsg.c
ViewVC logotype

Diff of /xforms/lib/errmsg.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by leeming, Thu Apr 24 09:35:34 2003 UTC revision 1.8 by leeming, Mon Sep 8 23:48:36 2003 UTC
# Line 58  char *id_errm = "$Id$"; Line 58  char *id_errm = "$Id$";
58  #include "ulib.h"  #include "ulib.h"
59  extern int errno;               /* system error no            */  extern int errno;               /* system error no            */
60    
61  #ifdef DONT_HAVE_STRERROR  #ifndef HAVE_STRERROR
62  extern char *sys_errlist[];  extern char *sys_errlist[];
63  #endif  #endif
64    
# Line 98  fl_set_error_handler( FL_ERROR_FUNC user Line 98  fl_set_error_handler( FL_ERROR_FUNC user
98  const char *fl_get_syserror_msg(void)  const char *fl_get_syserror_msg(void)
99  {  {
100      const char  *pp;      const char  *pp;
101  #ifndef DONT_HAVE_STRERROR  #ifdef HAVE_STRERROR
102      pp = errno ? strerror(errno) : "";      pp = errno ? strerror(errno) : "";
103  #else  #else
104      pp = errno ? sys_errlist[errno]:"";      pp = errno ? sys_errlist[errno]:"";

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26