From 3a9097ff8ab278180c9321fd29b8f1569bc9f111 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 18 Feb 2007 20:55:53 +0000 Subject: [PATCH] Work around an ugly glibc hack. --- ChangeLog | 5 +++++ lib/stdlib_.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8dffdfb94..aaf8b0ba1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-02-18 Bruno Haible + * lib/stdlib_.h: Handle glibc's special invocation convention + specially. + +2007-02-18 Bruno Haible + * modules/stdlib-tests: New file. * tests/test-stdlib.c: New file. diff --git a/lib/stdlib_.h b/lib/stdlib_.h index d2616a135..5a23da1e8 100644 --- a/lib/stdlib_.h +++ b/lib/stdlib_.h @@ -16,6 +16,11 @@ along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#if defined __need_malloc_and_calloc +/* Special invocation convention inside glibc header files. */ +#include @ABSOLUTE_STDLIB_H@ +#else +/* Normal invocation convention. */ #ifndef _GL_STDLIB_H #define _GL_STDLIB_H @@ -83,4 +88,5 @@ extern int mkstemp (char *template); } #endif +#endif /* _GL_STDLIB_H */ #endif -- 2.11.0