changeset 4413:232d849d4565

* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of having it depend on HAVE_SYS_TYPES_H. * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since xreadlink.c now includes it unconditionally. Patch proposed in <http://mail.gnu.org/archive/html/bug-gnulib/2003-06/msg00167.html>.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 01 Jul 2003 21:07:13 +0000
parents cef9e5edb354
children b27fffcae280
files lib/ChangeLog lib/xreadlink.c m4/ChangeLog m4/xreadlink.m4
diffstat 4 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-01  Paul Eggert  <eggert@twinsun.com>
+
+	* xreadlink.c: Include <sys/types.h> unconditionally, instead of
+	having it depend on HAVE_SYS_TYPES_H.
+
 2003-06-25  Bruno Haible  <bruno@clisp.org>
 
 	* readlink.c: New file.
--- a/lib/xreadlink.c
+++ b/lib/xreadlink.c
@@ -30,9 +30,7 @@
 #endif
 
 #include <limits.h>
-#if HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
+#include <sys/types.h>
 #if HAVE_STDLIB_H
 # include <stdlib.h>
 #endif
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-01  Paul Eggert  <eggert@twinsun.com>
+
+	* xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
+	xreadlink.c now includes it unconditionally.
+
 2003-07-01  Bruno Haible  <bruno@clisp.org>
 
 	* ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>. <sys/types.h>
--- a/m4/xreadlink.m4
+++ b/m4/xreadlink.m4
@@ -10,5 +10,5 @@
 [
   dnl Prerequisites of lib/xreadlink.c.
   AC_REQUIRE([gt_TYPE_SSIZE_T])
-  AC_CHECK_HEADERS_ONCE(stdlib.h sys/types.h unistd.h)
+  AC_CHECK_HEADERS_ONCE(stdlib.h unistd.h)
 ])