[PATCH] io: Fix F_GETLK64, F_SETLK64, and F_SETLKW64 for powerpc64

Andreas Schwab schwab@linux-m68k.org
Tue May 30 21:20:52 GMT 2023


On Mai 30 2023, Adhemerval Zanella via Libc-alpha wrote:

> diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h b/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
> index 0905cd833c..46ebda7057 100644
> --- a/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
> +++ b/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
> @@ -33,6 +33,16 @@
>  # define __O_LARGEFILE	0200000
>  #endif
>  
> +#if defined(__PPC64__) || defined(__powerpc64__)

I think this should use __WORDSIZE == 64.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."


More information about the Libc-alpha mailing list