which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
* lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
* modules/getcwd (Depends-on): Add openat.
Reported by Petr Salinger.
+2007-12-17 Jim Meyering <meyering@redhat.com>
+
+ Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
+ which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
+ * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
+ * modules/getcwd (Depends-on): Add openat.
+ Reported by Petr Salinger.
+
2007-12-17 Bruno Haible <bruno@clisp.org>
* m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
#include <fcntl.h> /* For AT_FDCWD on Solaris 9. */
+/* On a system without the openat function, undefine AT_FDCWD. */
+#if ! HAVE_OPENAT
+# undef AT_FDCWD
+#endif
+
#ifndef __set_errno
# define __set_errno(val) (errno = (val))
#endif
d-ino
dirfd
extensions
+openat
stdbool
unistd
malloc-posix