]> git.sur5r.net Git - openldap/commitdiff
Always include <stdlib.h>, to avoid massive breakage when !STDC_HEADERS.
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 1 Aug 1999 18:44:32 +0000 (18:44 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 1 Aug 1999 18:44:32 +0000 (18:44 +0000)
If someone really lacks stdlib.h, they should introduce HAVE_STDLIB_H.

include/ac/stdlib.h

index fad37d557b65b59fda3c42f35cda5c4a6f0cd922..929afafd110952ef630c79086ef8ad9d2ebfc97b 100644 (file)
 #ifndef _AC_STDLIB_H
 #define _AC_STDLIB_H
 
-#ifdef STDC_HEADERS
 #      include <stdlib.h>
 
-#else
-
-#      ifdef HAVE_MALLOC_H
+       /* Not sure if !STDC_HEADERS is needed */
+#      if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
 #              include <malloc.h>
 #      endif
 
-#endif
-
 #endif /* _AC_STDLIB_H */