X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=lib%2Fmtio.c;h=b994cc20761aee71953e5eeb0c57db25aad9f2a5;hp=3b728d0d8c62b1647d62fbfe332b5a2a482902ef;hb=945d02f51b66c1ca7b8ae959cd06b4f9ebbd0954;hpb=3d76922f0e81658032c4f67b9f6dc099daf0d8f8 diff --git a/lib/mtio.c b/lib/mtio.c index 3b728d0..b994cc2 100644 --- a/lib/mtio.c +++ b/lib/mtio.c @@ -16,6 +16,9 @@ along with this program. If not, see . */ +#ifdef HAVE_CONFIG_H +#include +#endif #include #include #include @@ -24,9 +27,6 @@ #include #include -#ifdef HAVE_CONFIG_H -#include -#endif #include #include #include @@ -107,6 +107,7 @@ static int mtclose(void *cookie) return(0); } +#ifdef HAVE_GLIBC_STDIO static cookie_io_functions_t iofuns = { .read = mtread, .write = mtwrite, @@ -129,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