From: Gregory P. Smith Date: Mon, 16 Jan 2012 10:05:23 +0000 (-0800) Subject: Test for the dirfd library function (for use in some upcoming X-Git-Tag: v3.2.3rc1~172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4188441f96bb5a59368a73911700a31b2e46522e;p=thirdparty%2FPython%2Fcpython.git Test for the dirfd library function (for use in some upcoming changes). --- diff --git a/configure.in b/configure.in index 0efe7d1b5a85..ef96da3d4ca8 100644 --- a/configure.in +++ b/configure.in @@ -2587,7 +2587,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 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 index a2bb1cd26c56..7a20810ed4b4 100644 --- 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 header file. */ #undef HAVE_DLFCN_H