[前][次][番号順一覧][スレッド一覧]

ruby-changes:64209

From: Nobuyoshi <ko1@a...>
Date: Wed, 16 Dec 2020 19:10:58 +0900 (JST)
Subject: [ruby-changes:64209] ddb93c3d64 (master): Made LARGEFILE_SUPPORT mandatory

https://git.ruby-lang.org/ruby.git/commit/?id=ddb93c3d64

From ddb93c3d64b8997c85f23c96a73ad0a9a7f82ad1 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 16 Dec 2020 17:05:39 +0900
Subject: Made LARGEFILE_SUPPORT mandatory


diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index aac1c22..b34f0b4 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -191,7 +191,6 @@ struct stati128 { https://github.com/ruby/ruby/blob/trunk/include/ruby/win32.h#L191
   long st_ctimensec;
 };
 
-#if SIZEOF_OFF_T == 8
 #define off_t __int64
 #define stat stati128
 #undef SIZEOF_STRUCT_STAT_ST_INO
@@ -202,12 +201,6 @@ struct stati128 { https://github.com/ruby/ruby/blob/trunk/include/ruby/win32.h#L201
 #define HAVE_STRUCT_STAT_ST_CTIMENSEC
 #define fstat(fd,st)		rb_w32_fstati128(fd,st)
 #define stati128(path, st)	rb_w32_stati128(path,st)
-#else
-#define stat(path,st)		rb_w32_stat(path,st)
-#define fstat(fd,st)		rb_w32_fstat(fd,st)
-extern int rb_w32_stat(const char *, struct stat *);
-extern int rb_w32_fstat(int, struct stat *);
-#endif
 #define lstat(path,st)		rb_w32_lstati128(path,st)
 #define access(path,mode)	rb_w32_access(path,mode)
 
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 2f146a8..46cca97 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -24,9 +24,6 @@ REVISION_FORCE = PHONY https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L24
 !ifndef CROSS_COMPILING
 CROSS_COMPILING = no
 !endif
-!ifndef LARGEFILE_SUPPORT
-LARGEFILE_SUPPORT = 1
-!endif
 !ifndef win_srcdir
 win_srcdir = $(srcdir)/win32
 !endif
@@ -639,11 +636,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L636
 #ifndef _INTEGRAL_MAX_BITS
 #define _INTEGRAL_MAX_BITS 64
 #endif
-!if $(LARGEFILE_SUPPORT)
 #define SIZEOF_OFF_T 8
-!else
-#define SIZEOF_OFF_T 4
-!endif
 !if "$(ARCH)" == "x64"
 #define SIZEOF_VOIDP 8
 !else
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]