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 --- compat/obstack.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'compat/obstack.h') diff --git a/compat/obstack.h b/compat/obstack.h index 449070e7f1..d178bd6716 100644 --- a/compat/obstack.h +++ b/compat/obstack.h @@ -187,7 +187,7 @@ extern int _obstack_begin_1 (struct obstack *, int, int, void (*) (void *, void *), void *); extern int _obstack_memory_used (struct obstack *); -void obstack_free (struct obstack *__obstack, void *__block); +void obstack_free (struct obstack *, void *); /* Error handler called when `obstack_chunk_alloc' failed to allocate @@ -195,9 +195,6 @@ void obstack_free (struct obstack *__obstack, void *__block); should either abort gracefully or use longjump - but shouldn't return. The default action is to print a message and abort. */ extern void (*obstack_alloc_failed_handler) (void); - -/* Exit value used when `print_and_abort' is used. */ -extern int obstack_exit_failure; /* Pointer to beginning of object being allocated or to be allocated next. Note that this might not be the final address of the object -- cgit v1.2.1