Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 30c8a11

Browse files
committed
Add a test for the dirfd library function (to be used in an upcoming
change). configure will be regenerated in the next commit.
2 parents b5a6deb + 6914048 commit 30c8a11

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2562,7 +2562,7 @@ AC_MSG_RESULT(MACHDEP_OBJS)
25622562

25632563
# checks for library functions
25642564
AC_CHECK_FUNCS(alarm accept4 setitimer getitimer bind_textdomain_codeset chown \
2565-
clock confstr ctermid execv faccessat fchmod fchmodat fchown fchownat \
2565+
clock confstr ctermid dirfd execv faccessat fchmod fchmodat fchown fchownat \
25662566
fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \
25672567
futimens futimes gai_strerror \
25682568
getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \

pyconfig.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@
181181
*/
182182
#undef HAVE_DIRENT_H
183183

184+
/* Define to 1 if you have the `dirfd' function. */
185+
#undef HAVE_DIRFD
186+
184187
/* Define to 1 if you have the <dlfcn.h> header file. */
185188
#undef HAVE_DLFCN_H
186189

0 commit comments

Comments
 (0)