no lib2xml without fcntl (patch supplied)
I've just tried to compile lib2xml with (old) MinGW. Result: missing definitions and if manually defined linking errors for fcntl.
I propose the following patch to get it working:
- configure.ac: add
AC_CHECK_FUNCS(fcntl)
somewhere - nanohttp.c (xmlNanoHTTPConnectAttempt):
+#ifdef HAVE_FCNTL
if ((status = fcntl(s, F_GETFL, 0)) != -1) {
#ifdef O_NONBLOCK
status |= O_NONBLOCK;
#else /* O_NONBLOCK */
#ifdef F_NDELAY
status |= F_NDELAY;
#endif /* F_NDELAY */
#endif /* !O_NONBLOCK */
status = fcntl(s, F_SETFL, status);
}
+#else
+ status = -1;
+#endif