chiark / gitweb /
Reran autoheader.
[adns.git] / src / config.h.in
index 74267bfb20a024071958cc3ae4a8121499b428cb..5de7cb0cd7c48f5f3bd5de41bf140801da8a6ae5 100644 (file)
@@ -12,6 +12,9 @@
 /* Define if printf-format argument lists a la GCC are available.  */
 #undef HAVE_GNUC25_PRINTFFORMAT
 
+/* Define if you have the poll function.  */
+#undef HAVE_POLL
+
 /* Define if you have the nsl library (-lnsl).  */
 #undef HAVE_LIBNSL
 
 
 /* Use the definitions: */
 
+#ifdef HAVE_POLL
+#include <sys/poll.h>
+#else
+/* kludge it up */
+struct pollfd { int fd; short events; short revents; };
+#define POLLIN  1
+#define POLLPRI 2
+#define POLLOUT 4
+#endif
+
 /* GNU C attributes. */
 #ifndef FUNCATTR
 #ifdef HAVE_GNUC25_ATTRIB