about summary refs log tree commit diff
path: root/sysdeps/unix/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/configure.in')
-rw-r--r--sysdeps/unix/configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/configure.in b/sysdeps/unix/configure.in
index 74456fe18c..37b6dcad86 100644
--- a/sysdeps/unix/configure.in
+++ b/sysdeps/unix/configure.in
@@ -72,6 +72,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
@@ -83,8 +84,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