X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fmtio.c;h=b994cc20761aee71953e5eeb0c57db25aad9f2a5;hb=945d02f51b66c1ca7b8ae959cd06b4f9ebbd0954;hp=43cc1f7045d3478c483846ebf57a232684b5d100;hpb=330c9bc3a9008ac4937e79e80a0d383ce082f7c1;p=ashd.git diff --git a/lib/mtio.c b/lib/mtio.c index 43cc1f7..b994cc2 100644 --- a/lib/mtio.c +++ b/lib/mtio.c @@ -16,16 +16,17 @@ along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +#include +#endif #include #include +#include #include #include #include #include -#ifdef HAVE_CONFIG_H -#include -#endif #include #include #include @@ -106,6 +107,7 @@ static int mtclose(void *cookie) return(0); } +#ifdef HAVE_GLIBC_STDIO static cookie_io_functions_t iofuns = { .read = mtread, .write = mtwrite, @@ -128,3 +130,6 @@ FILE *mtstdopen(int fd, int issock, int timeout, char *mode) fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK); return(ret); } +#else +#error "No stdio implementation for this system" +#endif