components/git/patches/barf.patch
author John Beck <John.Beck@Oracle.COM>
Tue, 06 Oct 2015 14:40:43 -0700
changeset 4957 69c89839e1ee
parent 4944 2efba29a3b65
permissions -rw-r--r--
21955798 new git patch to prevent inet_ntop() compile failures

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