obstack: Fix portability issues
authorFredrik Kuivinen <redacted>
Sun, 28 Aug 2011 20:08:46 +0000 (22:08 +0200)
committerJunio C Hamano <redacted>
Mon, 29 Aug 2011 05:03:26 +0000 (22:03 -0700)
commitd190a0875ff0f33d60a4d7265f2098b35d162f68
tree6fe98fa333137aa28150f2fa3c88cff1558c03c4
parent9eceddeec6ccdbcb0c6ce02a45357ffd5a428f39
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 <redacted>
Reported-by: Brian Gernhardt <redacted>
Signed-off-by: Fredrik Kuivinen <redacted>
Acked-by: David Aguilar <redacted>
Signed-off-by: Junio C Hamano <redacted>
compat/obstack.c
compat/obstack.h
kwset.c
git clone https://git.99rst.org/PROJECT