From 4188441f96bb5a59368a73911700a31b2e46522e Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 16 Jan 2012 02:05:23 -0800 Subject: [PATCH] Test for the dirfd library function (for use in some upcoming changes). --- configure.in | 2 +- pyconfig.h.in | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 0efe7d1b5a8..ef96da3d4ca 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 a2bb1cd26c5..7a20810ed4b 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