From 22c5cc239c253a5940346915dc9aebf171b4ac48 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Mon, 15 Oct 2012 21:46:33 +0200 Subject: [PATCH] tools/ffeval: include compat/getopt.c in case of missing system getopt() --- tools/ffeval.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/ffeval.c b/tools/ffeval.c index d7b736a0cf..d1d40c55d3 100644 --- a/tools/ffeval.c +++ b/tools/ffeval.c @@ -18,9 +18,17 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" +#if HAVE_UNISTD_H #include /* getopt */ +#endif + #include "libavutil/eval.h" +#if !HAVE_GETOPT +#include "compat/getopt.c" +#endif + /** * @file * simple arithmetic expression evaluator -- 2.11.0