This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
Re: Fix O_LARGEFILE for Linux/SPARC and s390
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."