From: Martin Storsjö Date: Tue, 28 Aug 2012 16:35:39 +0000 (+0300) Subject: graph2dot: Use the fallback getopt implementation if needed X-Git-Tag: android-x86-4.4-r1~8529^2~742 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=09d5e02ab0448acedc3d516595eebd408eebf679;p=android-x86%2Fexternal-ffmpeg.git graph2dot: Use the fallback getopt implementation if needed Signed-off-by: Martin Storsjö --- diff --git a/tools/graph2dot.c b/tools/graph2dot.c index 51a1ab109c..e7f487d146 100644 --- a/tools/graph2dot.c +++ b/tools/graph2dot.c @@ -18,7 +18,10 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" +#if HAVE_UNISTD_H #include /* getopt */ +#endif #include #include @@ -27,6 +30,10 @@ #include "libavutil/audioconvert.h" #include "libavfilter/avfiltergraph.h" +#if !HAVE_GETOPT +#include "compat/getopt.c" +#endif + static void usage(void) { printf("Convert a libavfilter graph to a dot file\n");