FDCWD.
* lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
* modules/getcwd (Depends-on): Add openat.
Reported by Petr Salinger.
I slightly changed the patch, to be consistent with approach in lib/fts.c.
It does work for GNU/kFreeBSD.
Many thanks
Petrdiff --git a/lib/get
Hello,
getcwd.c uses *at() function family iff AT_FDCWD is defined.
This approach does not work on GNU/kFreeBSD - FreeBSD kernel + GNU libc.
The kernel does not provide needed interfaces, and therefore glibc
provides only stub version for function from *at() family.
But the AT_FDCWD is declared a