summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-01-16 10:09:11 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-01-16 10:09:11 (GMT)
commit30c8a11836aca6a30944675ee0ac83be13c6a85b (patch)
treefd294b9e7a83f9deed2822d92f6f5768a9fa5520
parentb5a6deb26c5e00201498d81fe004cc9b90b19333 (diff)
parent6914048088e93e8200383dd74d494b95b8c96cd6 (diff)
downloadcpython-30c8a11836aca6a30944675ee0ac83be13c6a85b.zip
cpython-30c8a11836aca6a30944675ee0ac83be13c6a85b.tar.gz
cpython-30c8a11836aca6a30944675ee0ac83be13c6a85b.tar.bz2
Add a test for the dirfd library function (to be used in an upcoming
change). configure will be regenerated in the next commit.
-rw-r--r--configure.in2
-rw-r--r--pyconfig.h.in3
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index b7eccb7..fd70d25 100644
--- a/configure.in
+++ b/configure.in
@@ -2562,7 +2562,7 @@ AC_MSG_RESULT(MACHDEP_OBJS)
# checks for library functions
AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
- clock confstr ctermid execv faccessat fchmod fchmodat fchown fchownat \
+ clock confstr ctermid dirfd execv faccessat fchmod fchmodat fchown fchownat \
fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
futimens futimes gai_strerror \
getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \
diff --git a/pyconfig.h.in b/pyconfig.h.in
index accc893..7f7b3c5 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -181,6 +181,9 @@
*/
#undef HAVE_DIRENT_H
+/* Define to 1 if you have the `dirfd' function. */
+#undef HAVE_DIRFD
+
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H