summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r--libavformat/os_support.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 5427c567e6..795fab884b 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -103,6 +103,7 @@ done:
}
#endif /* !defined(HAVE_INET_ATON) && defined(CONFIG_NETWORK) */
+#ifdef CONFIG_FFSERVER
#ifndef HAVE_SYS_POLL_H
int poll(struct pollfd *fds, nfds_t numfds, int timeout)
{
@@ -161,7 +162,6 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
return rc;
}
-
-
#endif /* HAVE_SYS_POLL_H */
+#endif /* CONFIG_FFSERVER */