OSDN Git Service

os_support: make poll() fallbacks conditional on CONFIG_NETWORK
authorMans Rullgard <mans@mansr.com>
Fri, 28 Jan 2011 17:16:15 +0000 (17:16 +0000)
committerMans Rullgard <mans@mansr.com>
Fri, 28 Jan 2011 17:23:19 +0000 (17:23 +0000)
commit362d8f7d9e6a3bca2ce89f767d153d3ab8bf5773
treee82bd8847ca1af3c244696dfe7ff321bb9dd9b0a
parent4fc9ff0ad6f0f6b2c7443c6b4a3a1c817e97fdfd
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>
libavformat/os_support.c
libavformat/os_support.h