diff options
| author | Paul Eggert | 2012-07-10 22:44:06 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-10 22:44:06 -0700 |
| commit | 5ebbef1dc0d12fa5402c97e8aa8c0c85553b87ee (patch) | |
| tree | 90d30a96a919a0631a6b2c86a3a8ca6bb6f82210 /src/sysdep.c | |
| parent | 9af577566add17398ee3b778ac9934bc391eecf7 (diff) | |
| download | emacs-5ebbef1dc0d12fa5402c97e8aa8c0c85553b87ee.tar.gz emacs-5ebbef1dc0d12fa5402c97e8aa8c0c85553b87ee.zip | |
Assume strerror.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 37dc75529d0..8a27e24c792 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -1792,21 +1792,6 @@ get_random (void) | |||
| 1792 | return val & INTMASK; | 1792 | return val & INTMASK; |
| 1793 | } | 1793 | } |
| 1794 | 1794 | ||
| 1795 | #ifndef HAVE_STRERROR | ||
| 1796 | #ifndef WINDOWSNT | ||
| 1797 | char * | ||
| 1798 | strerror (int errnum) | ||
| 1799 | { | ||
| 1800 | extern char *sys_errlist[]; | ||
| 1801 | extern int sys_nerr; | ||
| 1802 | |||
| 1803 | if (errnum >= 0 && errnum < sys_nerr) | ||
| 1804 | return sys_errlist[errnum]; | ||
| 1805 | return (char *) "Unknown error"; | ||
| 1806 | } | ||
| 1807 | #endif /* not WINDOWSNT */ | ||
| 1808 | #endif /* ! HAVE_STRERROR */ | ||
| 1809 | |||
| 1810 | #ifndef HAVE_SNPRINTF | 1795 | #ifndef HAVE_SNPRINTF |
| 1811 | /* Approximate snprintf as best we can on ancient hosts that lack it. */ | 1796 | /* Approximate snprintf as best we can on ancient hosts that lack it. */ |
| 1812 | int | 1797 | int |