summaryrefslogtreecommitdiffstats
path: root/package/openocd/openocd-0003-force-gnu99.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/openocd/openocd-0003-force-gnu99.patch')
-rw-r--r--package/openocd/openocd-0003-force-gnu99.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/package/openocd/openocd-0003-force-gnu99.patch b/package/openocd/openocd-0003-force-gnu99.patch
new file mode 100644
index 000000000..106d11295
--- /dev/null
+++ b/package/openocd/openocd-0003-force-gnu99.patch
@@ -0,0 +1,19 @@
+force gnu99
+
+Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+---
+ configure.in | 1 +
+ 1 file changed, 1 insertion(+)
+
+Index: b/configure.in
+===================================================================
+--- a/configure.in
++++ b/configure.in
+@@ -28,6 +28,7 @@ AC_DISABLE_SHARED
+ AC_PROG_LIBTOOL
+ AC_SUBST(LIBTOOL_DEPS)
+
++CFLAGS="$CFLAGS -std=gnu99"
+
+ dnl configure checks required for Jim files (these are obsolete w/ C99)
+ AC_C_CONST