Mercurial > emacs
comparison lib-src/emacsclient.c @ 5527:51451a050975
[! HAVE_STRERROR] (strerror): Define the function.
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Sat, 08 Jan 1994 22:27:30 +0000 |
parents | 64a936b21f74 |
children | 7eefa1bd1478 |
comparison
equal
deleted
inserted
replaced
5526:5131e7d642b9 | 5527:51451a050975 |
---|---|
280 } | 280 } |
281 | 281 |
282 #endif /* HAVE_SYSVIPC */ | 282 #endif /* HAVE_SYSVIPC */ |
283 | 283 |
284 #endif /* HAVE_SOCKETS or HAVE_SYSVIPC */ | 284 #endif /* HAVE_SOCKETS or HAVE_SYSVIPC */ |
285 | |
286 #ifndef HAVE_STRERROR | |
287 char * | |
288 strerror (errnum) | |
289 int errnum; | |
290 { | |
291 extern char *sys_errlist[]; | |
292 extern int sys_nerr; | |
293 | |
294 if (errnum >= 0 && errnum < sys_nerr) | |
295 return sys_errlist[errnum]; | |
296 return (char *) "Unknown error"; | |
297 } | |
298 | |
299 #endif /* ! HAVE_STRERROR */ |