Skip to content
Snippets Groups Projects
Commit 09d5e02a authored by Martin Storsjö's avatar Martin Storsjö
Browse files

graph2dot: Use the fallback getopt implementation if needed

parent 212ec5fa
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,10 @@ ...@@ -18,7 +18,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "config.h"
#if HAVE_UNISTD_H
#include <unistd.h> /* getopt */ #include <unistd.h> /* getopt */
#endif
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
...@@ -27,6 +30,10 @@ ...@@ -27,6 +30,10 @@
#include "libavutil/audioconvert.h" #include "libavutil/audioconvert.h"
#include "libavfilter/avfiltergraph.h" #include "libavfilter/avfiltergraph.h"
#if !HAVE_GETOPT
#include "compat/getopt.c"
#endif
static void usage(void) static void usage(void)
{ {
printf("Convert a libavfilter graph to a dot file\n"); printf("Convert a libavfilter graph to a dot file\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment