This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix O_LARGEFILE for Linux/SPARC and s390
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Andreas Jaeger <aj at suse dot com>
- Cc: "Joseph S. Myers" <joseph at codesourcery dot com>, "libc-ports\ at sourceware dot org" <libc-ports at sourceware dot org>, libc-alpha at sourceware dot org
- Date: Wed, 24 Oct 2012 18:56:26 +0200
- Subject: Re: Fix O_LARGEFILE for Linux/SPARC and s390
- References: <5084483B.4030205@suse.com><Pine.LNX.4.64.1210212250110.1291@digraph.polyomino.org.uk><Pine.LNX.4.64.1210212257280.1291@digraph.polyomino.org.uk><2036625.SeAZvNclbu__45590.3210131966$1350890838$gmane$org@byrd>
Andreas Jaeger <aj@suse.com> writes:
> diff --git a/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
> b/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
> index 47941c4..6f53fbc 100644
> --- a/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
> +++ b/sysdeps/unix/sysv/linux/s390/bits/fcntl.h
> @@ -25,9 +25,9 @@
> #ifdef __USE_LARGEFILE64
> # if __WORDSIZE == 64
> /* Not necessary, files are always with 64bit off_t. */
> -# define O_LARGEFILE 0
> +# define __O_LARGEFILE 0
> # else
> -# define O_LARGEFILE 0100000
> +# define __O_LARGEFILE 0100000
> # endif
> #endif
__O_LARGEFILE should be defined unconditionally.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."