From: Theodore Tso Date: Mon, 24 Jun 1996 18:20:10 +0000 (+0000) Subject: Only include stdlib.h if it's available X-Git-Tag: krb5-1.0-beta7~327 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e8af2caa109242563614137bb5e4c5fae80b6453;p=krb5.git Only include stdlib.h if it's available git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8547 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index fd952daa3..620d2cecd 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,9 @@ +Mon Jun 24 09:37:26 1996 Theodore Ts'o + + * prof_file.c, prof_init.c, prof_parse.c, prof_section.c, + prof_tree.c, test_parse.c, test_profile.c, configure.in: + Only include stdlib.h if it's available. + Thu Jun 13 22:13:51 1996 Tom Yu * configure.in: remove ref to ET_RULES diff --git a/src/util/profile/configure.in b/src/util/profile/configure.in index 85055cb6c..df69396b5 100644 --- a/src/util/profile/configure.in +++ b/src/util/profile/configure.in @@ -7,6 +7,7 @@ AC_PROG_RANLIB AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(long) +AC_CHECK_HEADERS(unistd.h stdlib.h) AC_HAVE_FUNCS(stat) AC_PROG_AWK V5_SHARED_LIB_OBJS diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c index f7bdaf855..b877e4e1e 100644 --- a/src/util/profile/prof_file.c +++ b/src/util/profile/prof_file.c @@ -3,7 +3,9 @@ */ #include +#ifdef HAVE_STDLIB_H #include +#endif #include #include "prof_int.h" diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c index 867ef9996..c13417b9d 100644 --- a/src/util/profile/prof_init.c +++ b/src/util/profile/prof_init.c @@ -5,7 +5,9 @@ #include #include +#ifdef HAVE_STDLIB_H #include +#endif #include #include "prof_int.h" diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c index 4d1382bc8..9c83b8fdc 100644 --- a/src/util/profile/prof_parse.c +++ b/src/util/profile/prof_parse.c @@ -1,6 +1,8 @@ #include #include +#ifdef HAVE_STDLIB_H #include +#endif #include #include diff --git a/src/util/profile/prof_section.c b/src/util/profile/prof_section.c index e563e4f23..d147b7912 100644 --- a/src/util/profile/prof_section.c +++ b/src/util/profile/prof_section.c @@ -7,7 +7,9 @@ #include #include +#ifdef HAVE_STDLIB_H #include +#endif #include #include "prof_int.h" diff --git a/src/util/profile/prof_tree.c b/src/util/profile/prof_tree.c index 4934d29c5..a192e1d55 100644 --- a/src/util/profile/prof_tree.c +++ b/src/util/profile/prof_tree.c @@ -19,7 +19,9 @@ #include #include +#ifdef HAVE_STDLIB_H #include +#endif #include #include diff --git a/src/util/profile/test_parse.c b/src/util/profile/test_parse.c index 463cde4da..7fd86e912 100644 --- a/src/util/profile/test_parse.c +++ b/src/util/profile/test_parse.c @@ -1,6 +1,8 @@ #include #include +#ifdef HAVE_STDLIB_H #include +#endif #include #include diff --git a/src/util/profile/test_profile.c b/src/util/profile/test_profile.c index b75c81f70..171df93ec 100644 --- a/src/util/profile/test_profile.c +++ b/src/util/profile/test_profile.c @@ -3,7 +3,9 @@ */ #include +#ifdef HAVE_STDLIB_H #include +#endif #include "profile.h" #ifndef _MSDOS