aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/configure
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/configure')
-rwxr-xr-xsysdeps/unix/configure5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/configure b/sysdeps/unix/configure
index dfc1c22960..249a12907a 100755
--- a/sysdeps/unix/configure
+++ b/sysdeps/unix/configure
@@ -65,6 +65,7 @@ for unix_function in \
getitimer setitimer \
getdomainname/getdomain=bsd/bsd4.4 \
setdomainname/setdomain=bsd/bsd4.4 \
+ fchdir=bsd/bsd4.4 \
profil=bsd readv=bsd writev=bsd \
getpriority setpriority \
getrlimit setrlimit
@@ -76,8 +77,8 @@ do
unix_srcname=
unix_srcdir=common
eval "unix_syscall=`echo $unix_function | \
- sed -e 's@=\(.*\)$@ unix_srcdir=\1@' \
- -e 's@/\(.*\)$@ unix_srcname=\1@'`"
+ sed -e 's@=\(.*\)$@ unix_srcdir=\1@' \
+ -e 's@/\(^=/*\)$@ unix_srcname=\1@'`"
test -z "$unix_srcname" && unix_srcname=$unix_syscall
unix_implementor=none