Commit b7dd3fb7 authored by ramiro's avatar ramiro

Compile network-related code conditionally.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13076 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 02f7ca66
...@@ -31,7 +31,9 @@ ...@@ -31,7 +31,9 @@
#include "cmdutils.h" #include "cmdutils.h"
#include "avstring.h" #include "avstring.h"
#include "version.h" #include "version.h"
#ifdef CONFIG_NETWORK
#include "network.h" #include "network.h"
#endif
#undef exit #undef exit
...@@ -181,9 +183,11 @@ void print_error(const char *filename, int err) ...@@ -181,9 +183,11 @@ void print_error(const char *filename, int err)
case AVERROR(ENOENT): case AVERROR(ENOENT):
fprintf(stderr, "%s: no such file or directory\n", filename); fprintf(stderr, "%s: no such file or directory\n", filename);
break; break;
#ifdef CONFIG_NETWORK
case AVERROR(FF_NETERROR(EPROTONOSUPPORT)): case AVERROR(FF_NETERROR(EPROTONOSUPPORT)):
fprintf(stderr, "%s: Unsupported network protocol\n", filename); fprintf(stderr, "%s: Unsupported network protocol\n", filename);
break; break;
#endif
default: default:
fprintf(stderr, "%s: Error while opening file\n", filename); fprintf(stderr, "%s: Error while opening file\n", filename);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment