summaryrefslogtreecommitdiff
path: root/libavformat/os_support.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2011-01-28 17:16:15 +0000
committerMichael Niedermayer <michaelni@gmx.at>2011-01-30 03:41:00 +0100
commit13904b552b48e72bc472f98144ab54d0535ce99e (patch)
tree5185aecfa2a1644e1eedcc776bd54b427a5c7a8b /libavformat/os_support.c
parentb5a7100ad33df8c4ae9aa847633efb24d3c4b1c9 (diff)
os_support: make poll() fallbacks conditional on CONFIG_NETWORK
poll() is only used by networking code, so the fallback should only be built if networking is enabled. Also remove CONFIG_FFSERVER condition from the declarations. This should fix building on systems without poll(), broken by a8475bbdb64e638bd8161df9647876fd23f8a29a. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 362d8f7d9e6a3bca2ce89f767d153d3ab8bf5773)
Diffstat (limited to 'libavformat/os_support.c')
-rw-r--r--libavformat/os_support.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index 70cca92c8d..4f73011d65 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -234,7 +234,6 @@ int ff_socket_nonblock(int socket, int enable)
return fcntl(socket, F_SETFL, fcntl(socket, F_GETFL) & ~O_NONBLOCK);
#endif
}
-#endif /* CONFIG_NETWORK */
#if !HAVE_POLL_H
int poll(struct pollfd *fds, nfds_t numfds, int timeout)
@@ -304,3 +303,4 @@ int poll(struct pollfd *fds, nfds_t numfds, int timeout)
return rc;
}
#endif /* HAVE_POLL_H */
+#endif /* CONFIG_NETWORK */