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
4
dir.c
4
dir.c
@ -24,6 +24,10 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef O_CLOEXEC
|
||||||
|
# define O_CLOEXEC 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef USE_OPENDIR_AT
|
#ifndef USE_OPENDIR_AT
|
||||||
# if defined(HAVE_FDOPENDIR) && defined(HAVE_DIRFD) && \
|
# if defined(HAVE_FDOPENDIR) && defined(HAVE_DIRFD) && \
|
||||||
defined(HAVE_OPENAT) && defined(HAVE_FSTATAT)
|
defined(HAVE_OPENAT) && defined(HAVE_FSTATAT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user