1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Work around the assumption that openat() implies the existence of

fdopendir().  FreeBSD 8 has the former, but not the latter.

PR:		122433
This commit is contained in:
Christian Weisgerber 2008-04-11 16:11:53 +00:00
parent bc9fea1f55
commit cc18c45c56
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=211087
2 changed files with 19 additions and 0 deletions

View File

@ -25,6 +25,9 @@ CONFIGURE_ENV= CPPFLAGS='-I${LOCALBASE}/include' \
LDFLAGS='-L${LOCALBASE}/lib ${LDSTATIC}' \
DEFAULT_ARCHIVE=/dev/sa0 \
DEFAULT_RMT_COMMAND=/etc/rmt
# GNU assumes that openat() implies the existence of fdopendir(),
# which does not hold true on FreeBSD 8.
CONFIGURE_ENV+= ac_cv_func_openat=no
.if defined(WANT_STATIC)
LDSTATIC= -static

View File

@ -0,0 +1,16 @@
$FreeBSD$
--- lib/getcwd.c.orig
+++ lib/getcwd.c
@@ -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