summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-11 12:21:59 +0000
committerJim Meyering <jim@meyering.net>2003-04-11 12:21:59 +0000
commit1fd5c0ae41e762b854dea258ae9a8331e7e79116 (patch)
tree3967894063730ffae2d73816084ecf18704bd699 /lib
parent58b92bbeb23db76f96843e8a6784940fe0d902b2 (diff)
downloadcoreutils-1fd5c0ae41e762b854dea258ae9a8331e7e79116.tar.xz
Include <string.h> and <stdlib.h> unconditionally.
Diffstat (limited to 'lib')
-rw-r--r--lib/readutmp.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/readutmp.c b/lib/readutmp.c
index a623f2c1c..1a6af083c 100644
--- a/lib/readutmp.c
+++ b/lib/readutmp.c
@@ -23,17 +23,8 @@
#include <sys/types.h>
#include <sys/stat.h>
-#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
-# include <string.h>
-#else
-# include <strings.h>
-#endif /* STDC_HEADERS || HAVE_STRING_H */
-
-#if STDC_HEADERS
-# include <stdlib.h>
-#else
-void *realloc ();
-#endif
+#include <string.h>
+#include <stdlib.h>
#include "readutmp.h"
#include "unlocked-io.h"