Skip to content

Commit

Permalink
merge revision(s) 63720: [Backport #14864]
Browse files Browse the repository at this point in the history
	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/branches/ruby_2_5@66878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nagachika committed Jan 20, 2019
1 parent 4c42629 commit b5d43b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dir.c
Expand Up @@ -22,6 +22,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)
Expand Down
2 changes: 1 addition & 1 deletion version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "2.5.4"
#define RUBY_RELEASE_DATE "2019-01-20"
#define RUBY_PATCHLEVEL 133
#define RUBY_PATCHLEVEL 134

#define RUBY_RELEASE_YEAR 2019
#define RUBY_RELEASE_MONTH 1
Expand Down

0 comments on commit b5d43b1

Please sign in to comment.