# HG changeset patch # User Bruno Haible # Date 1288141187 -7200 # Node ID 54a5acffcb53ac8d4b5fc198106f6fa00c9e6942 # Parent 805b81dc0827b5f6e7e762dc6978b47212ea47b1 unistd: Refine workaround from 2009-12-23 against Cygwin bug. * lib/unistd.in.h: Don't include and , except on Cygwin and mingw. Suggested by Eric Blake. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-10-26 Bruno Haible + + unistd: Refine workaround from 2009-12-23 against Cygwin bug. + * lib/unistd.in.h: Don't include and , except on + Cygwin and mingw. + Suggested by Eric Blake. + 2010-10-26 Bruno Haible stdio: Work around compilation error due to renameat() on Solaris 10. diff --git a/lib/unistd.in.h b/lib/unistd.in.h --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -61,14 +61,16 @@ /* Cygwin 1.7.1 declares symlinkat in , not in . */ /* But avoid namespace pollution on glibc systems. */ #if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \ - || (@GNULIB_SYMLINKAT@ || defined GNULIB_POSIXCHECK)) \ + || ((@GNULIB_SYMLINKAT@ || defined GNULIB_POSIXCHECK) \ + && defined __CYGWIN__)) \ && ! defined __GLIBC__ # include #endif /* Cygwin 1.7.1 declares unlinkat in , not in . */ /* But avoid namespace pollution on glibc systems. */ -#if (@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ +#if (@GNULIB_UNLINKAT@ || defined GNULIB_POSIXCHECK) && defined __CYGWIN__ \ + && ! defined __GLIBC__ # include #endif