From 82a0a56381ed6a9cf78f3b662735391209ce6dee Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 27 Oct 2010 02:53:42 +0200 Subject: stdio: Work around compilation error due to renameat() on Solaris 10. * lib/stdio.in.h: Include on Solaris. * lib/renameat.c: Don't include here. * doc/posix-functions/renameat.texi: Mention the Solaris problem. Reported by Paul Eggert and Eric Blake. --- lib/renameat.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/renameat.c') 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 -/* 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 - #include #if HAVE_RENAMEAT -- cgit v1.2.1