]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/blobdiff - subst_poll.h
Imported Upstream version 0.4.0
[deb_pkgs/spamass-milter.git] / subst_poll.h
diff --git a/subst_poll.h b/subst_poll.h
new file mode 100644 (file)
index 0000000..3ff6b14
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef _SUBST_POLL_H
+#define _SUBST_POLL_H
+
+/* $Id: subst_poll.h,v 1.2 2003/03/06 21:40:49 dnelson Exp $ */
+
+struct pollfd {
+  int fd;
+  short int events;
+  short int revents;
+};
+
+enum { POLLIN = 1, POLLPRI = 2, POLLOUT = 4,
+       POLLERR = 8, POLLHUP = 16, POLLNVAL = 32 };
+
+#ifdef  __cplusplus
+extern "C" {
+#endif
+int poll(struct pollfd *fds, unsigned long nfds, int timeout);
+#ifdef  __cplusplus
+}
+#endif
+
+#endif