[Python-checkins] cpython (3.2): Test for the dirfd library function (for use in some upcoming

gregory.p.smith python-checkins at python.org
Mon Jan 16 11:09:56 CET 2012


http://hg.python.org/cpython/rev/9bfb93e2097d
changeset:   74438:9bfb93e2097d
branch:      3.2
parent:      74436:2d4ce2cdd6d4
user:        Gregory P. Smith <greg at krypto.org>
date:        Mon Jan 16 02:05:23 2012 -0800
summary:
  Test for the dirfd library function (for use in some upcoming
changes).

files:
  configure.in  |  2 +-
  pyconfig.h.in |  3 +++
  2 files changed, 4 insertions(+), 1 deletions(-)


diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -2587,7 +2587,7 @@
 
 # checks for library functions
 AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
- clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \
+ clock confstr ctermid dirfd execv fchmod fchown fork fpathconf ftime ftruncate \
  gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \
  getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \
  initgroups kill killpg lchmod lchown lstat mbrtowc mkfifo mknod mktime \
diff --git a/pyconfig.h.in b/pyconfig.h.in
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -178,6 +178,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
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list