summaryrefslogtreecommitdiff
path: root/modules/fchdir
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-09-23 12:32:41 +0200
committerBruno Haible <bruno@clisp.org>2011-09-23 12:36:08 +0200
commit0d22381b8090eefaf8a5f0c5b9e196ea40b12231 (patch)
tree17445bbcadb5a8dc1bf3a2ccedca9a59a3031b81 /modules/fchdir
parent07fb52f87fecb1e12eece031a9dec184cacdde12 (diff)
downloadgnulib-0d22381b8090eefaf8a5f0c5b9e196ea40b12231.tar.gz
New module 'chdir'.
* modules/chdir: New file. * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir. (chdir): New declaration. * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared. (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR. * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR. * tests/test-unistd-c++.cc: Check signature of chdir. * doc/posix-functions/chdir.texi: Mention problem on native Windows. * modules/chdir-long (Depends-on): Add chdir. * modules/fchdir (Depends-on): Likewise. * modules/rename (Depends-on): Likewise. * modules/savewd (Depends-on): Likewise.
Diffstat (limited to 'modules/fchdir')
-rw-r--r--modules/fchdir1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/fchdir b/modules/fchdir
index 7b7cb043b5..80b2bb826d 100644
--- a/modules/fchdir
+++ b/modules/fchdir
@@ -7,6 +7,7 @@ m4/fchdir.m4
Depends-on:
unistd
+chdir [test $HAVE_FCHDIR = 0]
close [test $HAVE_FCHDIR = 0]
dirent [test $HAVE_FCHDIR = 0]
dirfd [test $HAVE_FCHDIR = 0]