* lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Jul 2003 21:07:13 +0000 (21:07 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Jul 2003 21:07:13 +0000 (21:07 +0000)
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>.

lib/ChangeLog
lib/xreadlink.c
m4/ChangeLog
m4/xreadlink.m4

index ea69c6a5c92c95aacaf7ba4e50193d4b5a3f6c5e..2660556645564b3a757bf51884c67d833d4f33a4 100644 (file)
@@ -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.
index e4c565f8bb9e1bf292a2d83459d966f4556ae26b..f5cce16eb8f9adf763c0deec7c44556b66feedc2 100644 (file)
@@ -30,9 +30,7 @@ extern int errno;
 #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
index 9703e1558b1deb7a4da1a4cd4c524a41c5c54e1e..bb9a5a672c4c8b0bab510a3ac59bd1b313af00fe 100644 (file)
@@ -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>
index 25d04bb3e919161c3eac96fad9713f5d2a36086c..7062fd1989a372c57a1e809cd4822833d82043b6 100644 (file)
@@ -10,5 +10,5 @@ AC_DEFUN([gl_XREADLINK],
 [
   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)
 ])