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}
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4944
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     1
Patch to allow the Studio compilers to compile.  Although the existing code
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     2
catches cases where you're using an older gcc that doesn't support the
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     3
feature, it omits the case where gcc is not the compiler and the feature
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     4
is not available.  This is suitable for upstream.
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     5
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     6
--- git-2.5.3/git-compat-util.h	Thu Sep 17 13:26:50 2015
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     7
+++ git-2.5.3/git-compat-util.h	Thu Sep 24 14:32:55 2015
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     8
@@ -32,6 +32,8 @@
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
     9
 # else
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    10
 #  define FLEX_ARRAY 0 /* older GNU extension */
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    11
 # endif
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    12
+#else
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    13
+# define BARF_UNLESS_AN_ARRAY(arr) 0
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    14
 #endif
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    15
 
2efba29a3b65 20579345 git 2.6.1
Danek Duvall <danek.duvall@oracle.com>
parents:
diff changeset
    16
 /*