aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-20 04:27:24 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-20 04:27:24 +0000
commit5e80e9144f88bac3e2d8890c9e2fc22f5e391aff (patch)
tree63f15e6ce263a816578b68ffce616fe8dac22aa1 /file.c
parent10deba066e207eb142e7b61b1479c8af4016b247 (diff)
downloadruby-5e80e9144f88bac3e2d8890c9e2fc22f5e391aff.tar.gz
revert r67093 because it breaks tests
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/file.c b/file.c
index af0d44e9ba..c00c43e5d4 100644
--- a/file.c
+++ b/file.c
@@ -1112,23 +1112,6 @@ stat_without_gvl(const char *path, struct stat *st)
RUBY_UBF_IO, NULL);
}
-#if !defined HAVE_STATX && defined __linux__
-# ifdef HAVE_SYSCALL_H
-# include <syscall.h>
-# elif defined HAVE_SYS_SYSCALL_H
-# include <sys/syscall.h>
-# endif
-# if defined __NR_statx
-# include <linux/stat.h>
-static int statx(int dirfd, const char *pathname, int flags,
- unsigned int mask, struct statx *statxbuf)
-{
- return syscall(__NR_statx, dirfd, pathname, flags, mask, statxbuf);
-}
-# define HAVE_STATX
-# endif
-#endif
-
#ifdef HAVE_STATX
typedef struct no_gvl_statx_data {
struct statx *stx;