From d190a0875ff0f33d60a4d7265f2098b35d162f68 Mon Sep 17 00:00:00 2001 From: Fredrik Kuivinen Date: Sun, 28 Aug 2011 22:08:46 +0200 Subject: obstack: Fix portability issues i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1, SunOS 5.10, and possibly others do not have exit.h and exitfail.h. Remove the use of these in obstack.c. The __block variable was renamed to block to avoid a gcc error: compat/obstack.h:190: error: __block attribute can be specified on variables only Initial-patch-by: David Aguilar Reported-by: Brian Gernhardt Signed-off-by: Fredrik Kuivinen Acked-by: David Aguilar Signed-off-by: Junio C Hamano --- kwset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kwset.c') diff --git a/kwset.c b/kwset.c index fd4515a44c..956ae72950 100644 --- a/kwset.c +++ b/kwset.c @@ -37,7 +37,7 @@ #include "cache.h" #include "kwset.h" -#include "obstack.h" +#include "compat/obstack.h" #define NCHAR (UCHAR_MAX + 1) #define obstack_chunk_alloc xmalloc -- cgit v1.2.1