summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-01-07 19:17:15 +0100
committerDiego Biurrun <diego@biurrun.de>2012-01-07 22:13:08 +0100
commit52877251cfc309bd9d8b57905f6805222857aeb2 (patch)
tree0f05194d7c189fa77dbd765e768a6f0b0709de58 /libavformat
parent3dc99a18d4ae2b9bcc96e00b7f589128717aec64 (diff)
build: Skip compiling network.h and rtsp.h if networking is not enabled.
rtsp.h relies on network.h and the latter conditionally defines fallback OS structures that rely on configure tests, which are only run if networking is enabled.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 8c8a36d206..3902e89027 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -349,6 +349,8 @@ OBJS-$(CONFIG_TCP_PROTOCOL) += tcp.o
OBJS-$(CONFIG_TLS_PROTOCOL) += tls.o
OBJS-$(CONFIG_UDP_PROTOCOL) += udp.o
+SKIPHEADERS-$(CONFIG_NETWORK) += network.h rtsp.h
+
EXAMPLES = metadata output
TESTPROGS = seek
TOOLS = pktdumper probetest