mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Made LARGEFILE_SUPPORT mandatory
This commit is contained in:
parent
5193fbb6d0
commit
ddb93c3d64
Notes:
git
2020-12-16 19:11:06 +09:00
2 changed files with 0 additions and 14 deletions
|
@ -191,7 +191,6 @@ struct stati128 {
|
||||||
long st_ctimensec;
|
long st_ctimensec;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if SIZEOF_OFF_T == 8
|
|
||||||
#define off_t __int64
|
#define off_t __int64
|
||||||
#define stat stati128
|
#define stat stati128
|
||||||
#undef SIZEOF_STRUCT_STAT_ST_INO
|
#undef SIZEOF_STRUCT_STAT_ST_INO
|
||||||
|
@ -202,12 +201,6 @@ struct stati128 {
|
||||||
#define HAVE_STRUCT_STAT_ST_CTIMENSEC
|
#define HAVE_STRUCT_STAT_ST_CTIMENSEC
|
||||||
#define fstat(fd,st) rb_w32_fstati128(fd,st)
|
#define fstat(fd,st) rb_w32_fstati128(fd,st)
|
||||||
#define stati128(path, st) rb_w32_stati128(path,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 lstat(path,st) rb_w32_lstati128(path,st)
|
||||||
#define access(path,mode) rb_w32_access(path,mode)
|
#define access(path,mode) rb_w32_access(path,mode)
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,6 @@ REVISION_FORCE = PHONY
|
||||||
!ifndef CROSS_COMPILING
|
!ifndef CROSS_COMPILING
|
||||||
CROSS_COMPILING = no
|
CROSS_COMPILING = no
|
||||||
!endif
|
!endif
|
||||||
!ifndef LARGEFILE_SUPPORT
|
|
||||||
LARGEFILE_SUPPORT = 1
|
|
||||||
!endif
|
|
||||||
!ifndef win_srcdir
|
!ifndef win_srcdir
|
||||||
win_srcdir = $(srcdir)/win32
|
win_srcdir = $(srcdir)/win32
|
||||||
!endif
|
!endif
|
||||||
|
@ -639,11 +636,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
|
||||||
#ifndef _INTEGRAL_MAX_BITS
|
#ifndef _INTEGRAL_MAX_BITS
|
||||||
#define _INTEGRAL_MAX_BITS 64
|
#define _INTEGRAL_MAX_BITS 64
|
||||||
#endif
|
#endif
|
||||||
!if $(LARGEFILE_SUPPORT)
|
|
||||||
#define SIZEOF_OFF_T 8
|
#define SIZEOF_OFF_T 8
|
||||||
!else
|
|
||||||
#define SIZEOF_OFF_T 4
|
|
||||||
!endif
|
|
||||||
!if "$(ARCH)" == "x64"
|
!if "$(ARCH)" == "x64"
|
||||||
#define SIZEOF_VOIDP 8
|
#define SIZEOF_VOIDP 8
|
||||||
!else
|
!else
|
||||||
|
|
Loading…
Reference in a new issue