diff options
author | Martin Storsjö <martin@martin.st> | 2012-08-28 19:35:39 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-08-29 00:24:39 +0300 |
commit | 09d5e02ab0448acedc3d516595eebd408eebf679 (patch) | |
tree | 5a4038110260377b55e002119cab3f9818633231 /tools/graph2dot.c | |
parent | 212ec5faf9a75380594c9b49dc689b7e8be0e2cc (diff) | |
download | ffmpeg-09d5e02ab0448acedc3d516595eebd408eebf679.tar.gz |
graph2dot: Use the fallback getopt implementation if needed
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tools/graph2dot.c')
-rw-r--r-- | tools/graph2dot.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <unistd.h> /* getopt */ +#endif #include <stdio.h> #include <string.h> @@ -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"); |