From 0491e1d2120f78baea4b29705f120ad975e2f907 Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Sun, 13 Apr 2008 19:08:36 +0000 Subject: Work around the assumption that openat() implies the existence of fdopendir(). FreeBSD 8 has the former, but not the latter. PR: 122433 Approved by: maintainer --- sysutils/coreutils/files/patch-lib_getcwd.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 sysutils/coreutils/files/patch-lib_getcwd.c (limited to 'sysutils/coreutils/files') diff --git a/sysutils/coreutils/files/patch-lib_getcwd.c b/sysutils/coreutils/files/patch-lib_getcwd.c new file mode 100644 index 000000000000..8df1a66b9775 --- /dev/null +++ b/sysutils/coreutils/files/patch-lib_getcwd.c @@ -0,0 +1,13 @@ +--- lib/getcwd.c.orig 2008-04-11 20:06:03.000000000 +0200 ++++ lib/getcwd.c 2008-04-11 20:06:29.000000000 +0200 +@@ -30,6 +30,10 @@ + + #include /* For AT_FDCWD on Solaris 9. */ + ++#ifdef __FreeBSD__ ++# undef AT_FDCWD ++#endif ++ + #ifndef __set_errno + # define __set_errno(val) (errno = (val)) + #endif -- cgit v1.2.3