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:
parent
cef7166ac1
commit
fc221145a7
|
@ -56,6 +56,8 @@
|
||||||
* libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
|
* libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
|
||||||
(do_test_bz20181): Rename accordingly.
|
(do_test_bz20181): Rename accordingly.
|
||||||
* libio/tst-wmemstream3.c (FWRITE): 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>
|
2008-12-18 Thomas Schwinge <tschwinge@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ static int dir_fd;
|
||||||
static void
|
static void
|
||||||
prepare (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)
|
if (pathconf (test_dir, _PC_CHOWN_RESTRICTED) != 0)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue