mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Always include <stdlib.h>, to avoid massive breakage when !STDC_HEADERS.
If someone really lacks stdlib.h, they should introduce HAVE_STDLIB_H.
This commit is contained in:
parent
d35191a20a
commit
d5840e809f
1 changed files with 2 additions and 6 deletions
|
|
@ -12,15 +12,11 @@
|
|||
#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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue