summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/ext-proto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/krb5/ext-proto.h b/src/include/krb5/ext-proto.h
index 120e2c1fe..9bdf85f7f 100644
--- a/src/include/krb5/ext-proto.h
+++ b/src/include/krb5/ext-proto.h
@@ -16,6 +16,9 @@
#ifndef KRB5_EXT_PROTO__
#define KRB5_EXT_PROTO__
+#ifdef HAS_STDLIB_H
+#include <stdlib.h>
+#else
#ifdef __STDC__
#ifdef NO_STDLIB_H
#include <fake-stdlib.h>
@@ -26,6 +29,7 @@
extern char *malloc(), *realloc(), *calloc();
extern char *getenv();
#endif /* ! __STDC__ */
+#endif /* HAS_STDLIB_H */
#ifdef USE_STRING_H
#include <string.h>