mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
dir.c: define O_CLOEXEC for older systems
SuSE 10 has openat(), but not O_CLOEXEC Reported-by: wangpeiwen [ruby-core:87591] [Bug #14864] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3839734b94
commit
45765e94d9
1 changed files with 4 additions and 0 deletions
4
dir.c
4
dir.c
|
@ -24,6 +24,10 @@
|
|||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef O_CLOEXEC
|
||||
# define O_CLOEXEC 0
|
||||
#endif
|
||||
|
||||
#ifndef USE_OPENDIR_AT
|
||||
# if defined(HAVE_FDOPENDIR) && defined(HAVE_DIRFD) && \
|
||||
defined(HAVE_OPENAT) && defined(HAVE_FSTATAT)
|
||||
|
|
Loading…
Add table
Reference in a new issue