diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-05-08 00:46:34 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-05-08 00:46:34 +0000 |
commit | 0b705fa4247f7ce55a6f26e417c8a5a1f90919e4 (patch) | |
tree | bf079f5041898c8fc938857bf4e3ed4aa8faa83f /cmdutils.c | |
parent | b091aa44b7c88ab4ff69949bf8903b4372e0c4a6 (diff) | |
download | ffmpeg-0b705fa4247f7ce55a6f26e417c8a5a1f90919e4.tar.gz |
Compile network-related code conditionally.
Originally committed as revision 13076 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'cmdutils.c')
-rw-r--r-- | cmdutils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c index 8333994993..86b4a9ef21 100644 --- a/cmdutils.c +++ b/cmdutils.c @@ -31,7 +31,9 @@ #include "cmdutils.h" #include "avstring.h" #include "version.h" +#ifdef CONFIG_NETWORK #include "network.h" +#endif #undef exit @@ -181,9 +183,11 @@ void print_error(const char *filename, int err) case AVERROR(ENOENT): fprintf(stderr, "%s: no such file or directory\n", filename); break; +#ifdef CONFIG_NETWORK case AVERROR(FF_NETERROR(EPROTONOSUPPORT)): fprintf(stderr, "%s: Unsupported network protocol\n", filename); break; +#endif default: fprintf(stderr, "%s: Error while opening file\n", filename); break; |