summaryrefslogtreecommitdiff
path: root/malloc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-05-20 23:55:36 +0000
committerUlrich Drepper <drepper@redhat.com>1997-05-20 23:55:36 +0000
commit5dd4da2d24cbc842f6f3863ea1fb3c199efb853b (patch)
treec9a9cb374f24f17ad69faada71aed4e4e1712afb /malloc
parentf688a75efb198cb25b8cacd0fe9ff14262f119fc (diff)
Include <config.h>. Include <stdlib.h> only if __GNU_LIBRARY__ or
HAVE_STDLIB_H is defined.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/obstack.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/malloc/obstack.c b/malloc/obstack.c
index 1e36c4a0a5..731762f5a9 100644
--- a/malloc/obstack.c
+++ b/malloc/obstack.c
@@ -1,5 +1,5 @@
/* obstack.c - subroutines used implicitly by object stack macros
- Copyright (C) 1988,89,90,91,92,93,94,96 Free Software Foundation, Inc.
+ Copyright (C) 1988,89,90,91,92,93,94,96,97 Free Software Foundation, Inc.
This file is part of the GNU C Library. Its master source is NOT part of
the C library, however. The master source lives in /gd/gnu/lib.
@@ -19,6 +19,10 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "obstack.h"
/* NOTE BEFORE MODIFYING THIS FILE: This version number must be
@@ -85,7 +89,7 @@ void (*obstack_alloc_failed_handler) () = print_and_abort;
#endif
/* Exit value used when `print_and_abort' is used. */
-#if defined (__STDC__) && __STDC__
+#if defined __GNU_LIBRARY__ || defined HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifndef EXIT_FAILURE