hurd: Fix building io/tst-fchownat.c

* io/tst-fchownat.c [!defined _POSIX_CHOWN_RESTRICTED]: Act like when
	_POSIX_CHOWN_RESTRICTED is defined to 0.
This commit is contained in:
Samuel Thibault 2018-01-28 17:52:34 +01:00
parent cef7166ac1
commit fc221145a7
2 changed files with 3 additions and 1 deletions

View File

@ -56,6 +56,8 @@
* libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
(do_test_bz20181): Rename accordingly.
* libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
* io/tst-fchownat.c [!defined _POSIX_CHOWN_RESTRICTED]: Act like when
_POSIX_CHOWN_RESTRICTED is defined to 0.
2008-12-18 Thomas Schwinge <tschwinge@gnu.org>

View File

@ -20,7 +20,7 @@ static int dir_fd;
static void
prepare (void)
{
#if _POSIX_CHOWN_RESTRICTED == 0
#if !defined _POSIX_CHOWN_RESTRICTED || _POSIX_CHOWN_RESTRICTED == 0
if (pathconf (test_dir, _PC_CHOWN_RESTRICTED) != 0)
#endif
{