Mettre -D_FILE_OFFSET_BITS=64 dans les options de compilation partagees par tout le monde

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4533 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Xavier Leroy 2002-03-15 14:38:37 +00:00
parent e26a033cd0
commit cefcfba94a
4 changed files with 6 additions and 5 deletions

View File

@ -15,8 +15,6 @@
/* Buffered input/output. */
#define _FILE_OFFSET_BITS 64
#include <errno.h>
#include <fcntl.h>
#include <limits.h>

View File

@ -15,8 +15,6 @@
/* Basic system calls */
#define _FILE_OFFSET_BITS 64
#include <errno.h>
#include <fcntl.h>
#include <signal.h>

5
configure vendored
View File

@ -645,6 +645,11 @@ fi
echo "#define OCAML_OS_TYPE \"$ostype\"" >> s.h
echo "#define OCAML_STDLIB_DIR \"$libdir\"" >> s.h
# Use 64-bit file offset if possible
bytecccompopts="$bytecccompopts -D_FILE_OFFSET_BITS=64"
nativecccompopts="$nativecccompopts -D_FILE_OFFSET_BITS=64"
# Check the semantics of signal handlers
if sh ./hasgot sigaction sigprocmask; then

View File

@ -19,7 +19,7 @@ include ../../config/Makefile
# Compilation options
CC=$(BYTECC)
CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS) -D_FILE_OFFSET_BITS=64
CFLAGS=-I../../byterun -O $(BYTECCCOMPOPTS) $(SHAREDCCCOMPOPTS)
CAMLC=../../boot/ocamlrun ../../ocamlc -I ../../stdlib
CAMLOPT=../../boot/ocamlrun ../../ocamlopt -I ../../stdlib
MKLIB=../../boot/ocamlrun ../../tools/ocamlmklib