@@ -18,9 +18,17 @@
* 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 "libavutil/eval.h"
+#if !HAVE_GETOPT
+#include "compat/getopt.c"
/**
* @file
* simple arithmetic expression evaluator