components/git/patches/barf.patch
author Ronald Jordan <ron.jordan@oracle.com>
Tue, 27 Sep 2016 10:50:55 -0700
branchs11u3-sru
changeset 6981 1d2ebf9515bd
parent 5720 519e1bb835ee
permissions -rw-r--r--
24710405 Upgrade OpenSSL version to 1.0.1u 24703800 problem in LIBRARY/OPENSSL 24703856 problem in LIBRARY/OPENSSL 24703866 problem in LIBRARY/OPENSSL 24703911 problem in LIBRARY/OPENSSL 24703934 problem in LIBRARY/OPENSSL 24703939 problem in LIBRARY/OPENSSL

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
 
 /*