[FFmpeg-cvslog] tools/ffeval: include compat/getopt.c in case of missing system getopt()
Stefano Sabatini
git at videolan.org
Mon Oct 15 21:58:41 CEST 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Mon Oct 15 21:46:33 2012 +0200| [22c5cc239c253a5940346915dc9aebf171b4ac48] | committer: Stefano Sabatini
tools/ffeval: include compat/getopt.c in case of missing system getopt()
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=22c5cc239c253a5940346915dc9aebf171b4ac48
---
tools/ffeval.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tools/ffeval.c b/tools/ffeval.c
index d7b736a..d1d40c5 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 <unistd.h> /* getopt */
+#endif
+
#include "libavutil/eval.h"
+#if !HAVE_GETOPT
+#include "compat/getopt.c"
+#endif
+
/**
* @file
* simple arithmetic expression evaluator
More information about the ffmpeg-cvslog
mailing list