+#ifdef CONFIG_FFSERVER
+#ifndef HAVE_POLL_H
+typedef unsigned long nfds_t;
+
+struct pollfd {
+ int fd;
+ short events; /* events to look for */
+ short revents; /* events that occurred */
+};
+
+/* events & revents */
+#define POLLIN 0x0001 /* any readable data available */
+#define POLLOUT 0x0002 /* file descriptor is writeable */
+#define POLLRDNORM POLLIN
+#define POLLWRNORM POLLOUT
+#define POLLRDBAND 0x0008 /* priority readable data */
+#define POLLWRBAND 0x0010 /* priority data can be written */
+#define POLLPRI 0x0020 /* high priority readable data */
+
+/* revents only */
+#define POLLERR 0x0004 /* errors pending */
+#define POLLHUP 0x0080 /* disconnected */
+#define POLLNVAL 0x1000 /* invalid file descriptor */
+
+
+extern int poll(struct pollfd *fds, nfds_t numfds, int timeout);
+#endif /* HAVE_POLL_H */
+#endif /* CONFIG_FFSERVER */
+#endif /* CONFIG_NETWORK */
+
+#endif /* FFMPEG_OS_SUPPORT_H */