From: Bruno Haible Date: Sun, 18 Feb 2007 20:55:53 +0000 (+0000) Subject: Work around an ugly glibc hack. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a9097ff8ab278180c9321fd29b8f1569bc9f111;p=pspp Work around an ugly glibc hack. --- diff --git a/ChangeLog b/ChangeLog index 8dffdfb940..aaf8b0ba14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/lib/stdlib_.h b/lib/stdlib_.h index d2616a135b..5a23da1e83 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