diff options
author | OBATA Akio <[email protected]> | 2019-04-20 16:46:15 +0900 |
---|---|---|
committer | OBATA Akio <[email protected]> | 2019-04-20 18:08:58 +0900 |
commit | 7537d9ef7d526052ca051d93692b290b5fb64d88 (patch) | |
tree | c2fdc0e11e5aa7cfe7e1998a3477cd657c6f9b6d /ktalkd/mail.local | |
parent | 2c18879814fa01d3bd9de69625c8ff1791f793b6 (diff) | |
download | tdenetwork-7537d9ef7d526052ca051d93692b290b5fb64d88.tar.gz tdenetwork-7537d9ef7d526052ca051d93692b290b5fb64d88.zip |
Change to check `strerror` and `fdopen` with CMake
It is hard to update list of "available" platforms.
Signed-off-by: OBATA Akio <[email protected]>
Diffstat (limited to 'ktalkd/mail.local')
-rw-r--r-- | ktalkd/mail.local/mail.local.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ktalkd/mail.local/mail.local.c b/ktalkd/mail.local/mail.local.c index 9c90d272..c88351dd 100644 --- a/ktalkd/mail.local/mail.local.c +++ b/ktalkd/mail.local/mail.local.c @@ -232,8 +232,11 @@ static char copyright[] = # define _BSD_VA_LIST_ va_list #endif -#if !defined(BSD4_4) && !defined(linux) && !defined(_UNIXWARE) +#ifndef HAVE_STRERROR_PROTO extern char *strerror __P((int)); +#endif + +#ifndef HAVE_FDOPEN_PROTO extern FILE *fdopen __P((int, const char *)); #endif @@ -831,7 +834,7 @@ e_to_sys(num) } } -#if !defined(BSD4_4) && !defined(__osf__) && !defined(__GLIBC__) +#ifndef HAVE_STRERROR char * strerror(eno) |