0491e1d212
fdopendir(). FreeBSD 8 has the former, but not the latter. PR: 122433 Approved by: maintainer
14 lines
308 B
C
14 lines
308 B
C
--- 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 <fcntl.h> /* For AT_FDCWD on Solaris 9. */
|
|
|
|
+#ifdef __FreeBSD__
|
|
+# undef AT_FDCWD
|
|
+#endif
|
|
+
|
|
#ifndef __set_errno
|
|
# define __set_errno(val) (errno = (val))
|
|
#endif
|