components/git/patches/barf.patch
author John Beck <John.Beck@Oracle.COM>
Fri, 02 Oct 2015 09:02:41 -0700
changeset 4964 30f7741bb742
parent 4944 2efba29a3b65
permissions -rw-r--r--
21959680 libsocket tweak needed for python{27,34,35}

Patch to allow the Studio compilers to compile.  Although the existing code
catches cases where you're using an older gcc that doesn't support the
feature, it omits the case where gcc is not the compiler and the feature
is not available.  This is suitable for upstream.

--- git-2.5.3/git-compat-util.h	Thu Sep 17 13:26:50 2015
+++ git-2.5.3/git-compat-util.h	Thu Sep 24 14:32:55 2015
@@ -32,6 +32,8 @@
 # else
 #  define FLEX_ARRAY 0 /* older GNU extension */
 # endif
+#else
+# define BARF_UNLESS_AN_ARRAY(arr) 0
 #endif
 
 /*