|
From: Nils G. <nil...@mc...> - 2007-04-10 20:43:45
|
Hi everyone,
I'd be grateful if some added this litte change upstream.
Having getopt does not mean it's in getopt.h:
diff -Nabur ming-0.4.0.beta3/configure.in ming-0.4.0.beta3.getopt/configure.in
--- ming-0.4.0.beta3/configure.in 2006-12-11 01:13:59.000000000 +0100
+++ ming-0.4.0.beta3.getopt/configure.in 2007-04-10 17:54:43.378541000 +0200
@@ -245,6 +245,7 @@
AC_CHECK_LIB(zdll, compress2, ZLIB="-lzdll", ZLIB="")
)
AC_CHECK_HEADERS([zlib.h])
+AC_CHECK_HEADERS([getopt.h])
dnl Check if the vasprintf function exists on this platform
dnl (It's not present on MinGW and Solaris 10 at the time of this coding)
diff -Nabur ming-0.4.0.beta3/util/makeswf.c ming-0.4.0.beta3.getopt/util/makeswf.c
--- ming-0.4.0.beta3/util/makeswf.c 2006-11-27 15:38:33.000000000 +0100
+++ ming-0.4.0.beta3.getopt/util/makeswf.c 2007-04-10 17:55:08.552474000 +0200
@@ -66,7 +66,7 @@
#include <ming.h>
#include <ming_config.h>
#include "makeswf.h"
-#ifdef HAVE_GETOPT
+#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
diff -Nabur ming-0.4.0.beta3/util/makeswf_utils.c ming-0.4.0.beta3.getopt/util/makeswf_utils.c
--- ming-0.4.0.beta3/util/makeswf_utils.c 2006-07-10 18:11:26.000000000 +0200
+++ ming-0.4.0.beta3.getopt/util/makeswf_utils.c 2007-04-10 17:55:12.991293000 +0200
@@ -38,7 +38,7 @@
#include <limits.h>
#include <ming.h>
#include "makeswf.h"
-#ifdef HAVE_GETOPT
+#ifdef HAVE_GETOPT_H
#include <getopt.h>
#endif
--
Nils Goroll
=========================================@MCS====
MCS Moorbek Computer Systeme GmbH
Essener Bogen 17 - 22419 Hamburg - Germany
Tel: +49 (0)40 53773 0
Fax: +49 (0)40 53773 200
nil...@mc... http://www.mcs.de
Eingetragen im Handelsregister Hamburg B62933
Geschäftsführer: Kai Brandes & Eckard Kabel
=================================================
|