Only include stdlib.h if it's available
authorTheodore Tso <tytso@mit.edu>
Mon, 24 Jun 1996 18:20:10 +0000 (18:20 +0000)
committerTheodore Tso <tytso@mit.edu>
Mon, 24 Jun 1996 18:20:10 +0000 (18:20 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8547 dc483132-0cff-0310-8789-dd5450dbe970

src/util/profile/ChangeLog
src/util/profile/configure.in
src/util/profile/prof_file.c
src/util/profile/prof_init.c
src/util/profile/prof_parse.c
src/util/profile/prof_section.c
src/util/profile/prof_tree.c
src/util/profile/test_parse.c
src/util/profile/test_profile.c

index fd952daa36d78e2073f0f9f88cc28788fb94a8aa..620d2cecddd99e85bba933dfb46aee86d284e5a7 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun 24 09:37:26 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * 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  <tlyu@voltage-multiplier.mit.edu>
 
        * configure.in: remove ref to ET_RULES
index 85055cb6cac8fae74660ab30eacfd4743133e943..df69396b51f546f859e18aaa34393c80e3ec33fd 100644 (file)
@@ -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
index f7bdaf85510e08a050b4cef4b43678592723fec8..b877e4e1e299879d8d98edb9438814971d050696 100644 (file)
@@ -3,7 +3,9 @@
  */
 
 #include <stdio.h>
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
+#endif
 #include <string.h>
 
 #include "prof_int.h"
index 867ef9996ce2a0f2c53096529e82b4195f001d3b..c13417b9dab63b714b7cc4e1b944695ad2e49488 100644 (file)
@@ -5,7 +5,9 @@
 
 #include <stdio.h>
 #include <string.h>
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
+#endif
 #include <errno.h>
 
 #include "prof_int.h"
index 4d1382bc8e9a0cb9b7b85191e7c12541f2cf47ed..9c83b8fdcd7c8fd4092cc3b5d99667b9b43ed539 100644 (file)
@@ -1,6 +1,8 @@
 #include <stdio.h>
 #include <string.h>
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
+#endif
 #include <errno.h>
 #include <ctype.h>
 
index e563e4f238fda9e0563bd0fe2a86b045e10ce9ea..d147b791214401d382ad8dee438a3db713d88b68 100644 (file)
@@ -7,7 +7,9 @@
 
 #include <stdio.h>
 #include <string.h>
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
+#endif
 #include <errno.h>
 
 #include "prof_int.h"
index 4934d29c5ee2ff3256d1507de49f214ad48b4f70..a192e1d55c477fd9be80bfe9679be43a5f480586 100644 (file)
@@ -19,7 +19,9 @@
 
 #include <stdio.h>
 #include <string.h>
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
+#endif
 #include <errno.h>
 #include <ctype.h>
 
index 463cde4da08b27773c7776e4035c5970c327f4e9..7fd86e9127de25cea23e26c58d9c73e3afe12cf3 100644 (file)
@@ -1,6 +1,8 @@
 #include <stdio.h>
 #include <string.h>
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
+#endif
 #include <errno.h>
 #include <ctype.h>
 
index b75c81f705d1dffcd22270d9dca42828d5fa0780..171df93ecce28fa8aa75b72946a4cccb29b9ed03 100644 (file)
@@ -3,7 +3,9 @@
  */
 
 #include <stdio.h>
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
+#endif
 
 #include "profile.h"
 #ifndef _MSDOS