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 /lib-src/emacsclient.c | |
| parent | 9af577566add17398ee3b778ac9934bc391eecf7 (diff) | |
| download | emacs-5ebbef1dc0d12fa5402c97e8aa8c0c85553b87ee.tar.gz emacs-5ebbef1dc0d12fa5402c97e8aa8c0c85553b87ee.zip | |
Assume strerror.
Diffstat (limited to 'lib-src/emacsclient.c')
| -rw-r--r-- | lib-src/emacsclient.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 5487c147079..0ba6535b79d 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -749,8 +749,6 @@ main (int argc, char **argv) | |||
| 749 | #define AUTH_KEY_LENGTH 64 | 749 | #define AUTH_KEY_LENGTH 64 |
| 750 | #define SEND_BUFFER_SIZE 4096 | 750 | #define SEND_BUFFER_SIZE 4096 |
| 751 | 751 | ||
| 752 | extern char *strerror (int); | ||
| 753 | |||
| 754 | /* Buffer to accumulate data to send in TCP connections. */ | 752 | /* Buffer to accumulate data to send in TCP connections. */ |
| 755 | char send_buffer[SEND_BUFFER_SIZE + 1]; | 753 | char send_buffer[SEND_BUFFER_SIZE + 1]; |
| 756 | int sblen = 0; /* Fill pointer for the send buffer. */ | 754 | int sblen = 0; /* Fill pointer for the send buffer. */ |
| @@ -1850,22 +1848,3 @@ main (int argc, char **argv) | |||
| 1850 | } | 1848 | } |
| 1851 | 1849 | ||
| 1852 | #endif /* HAVE_SOCKETS && HAVE_INET_SOCKETS */ | 1850 | #endif /* HAVE_SOCKETS && HAVE_INET_SOCKETS */ |
| 1853 | |||
| 1854 | |||
| 1855 | #ifndef HAVE_STRERROR | ||
| 1856 | char * | ||
| 1857 | strerror (errnum) | ||
| 1858 | int errnum; | ||
| 1859 | { | ||
| 1860 | extern char *sys_errlist[]; | ||
| 1861 | extern int sys_nerr; | ||
| 1862 | |||
| 1863 | if (errnum >= 0 && errnum < sys_nerr) | ||
| 1864 | return sys_errlist[errnum]; | ||
| 1865 | return (char *) "Unknown error"; | ||
| 1866 | } | ||
| 1867 | |||
| 1868 | #endif /* ! HAVE_STRERROR */ | ||
| 1869 | |||
| 1870 | |||
| 1871 | /* emacsclient.c ends here */ | ||