summaryrefslogtreecommitdiff
path: root/lib/renameat.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-10-27 02:53:42 +0200
committerBruno Haible <bruno@clisp.org>2010-10-27 02:53:42 +0200
commit82a0a56381ed6a9cf78f3b662735391209ce6dee (patch)
tree253ad77bfec4afd093557ff834f208af780d23c2 /lib/renameat.c
parent6da7b8a1733c379d83744df595b123f2fc5606a7 (diff)
downloadgnulib-82a0a56381ed6a9cf78f3b662735391209ce6dee.tar.gz
stdio: Work around compilation error due to renameat() on Solaris 10.
* lib/stdio.in.h: Include <unistd.h> on Solaris. * lib/renameat.c: Don't include <unistd.h> here. * doc/posix-functions/renameat.texi: Mention the Solaris problem. Reported by Paul Eggert and Eric Blake.
Diffstat (limited to 'lib/renameat.c')
-rw-r--r--lib/renameat.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/renameat.c b/lib/renameat.c
index 692fd52ae5..f294765043 100644
--- a/lib/renameat.c
+++ b/lib/renameat.c
@@ -18,12 +18,6 @@
#include <config.h>
-/* Solaris 10, which predates POSIX-2008, declares its renameat in
- unistd.h. Include unistd.h before including stdio.h, so that
- gnulib's stdio.h doesn't #define renameat to rpl_renameat before
- Solaris 10's unistd.h declares the system renameat. */
-#include <unistd.h>
-
#include <stdio.h>
#if HAVE_RENAMEAT