ruby-changes:51510
From: normal <ko1@a...>
Date: Fri, 22 Jun 2018 17:47:18 +0900 (JST)
Subject: [ruby-changes:51510] normal:r63720 (trunk): dir.c: define O_CLOEXEC for older systems
normal 2018-06-22 17:47:12 +0900 (Fri, 22 Jun 2018) New Revision: 63720 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63720 Log: dir.c: define O_CLOEXEC for older systems SuSE 10 has openat(), but not O_CLOEXEC Reported-by: wangpeiwen [ruby-core:87591] [Bug #14864] Modified files: trunk/dir.c Index: dir.c =================================================================== --- dir.c (revision 63719) +++ dir.c (revision 63720) @@ -24,6 +24,10 @@ https://github.com/ruby/ruby/blob/trunk/dir.c#L24 #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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/