search for: have_arch_struct_flock

Displaying 1 result from an estimated 1 matches for "have_arch_struct_flock".

2019 Jan 21
0
[klibc:master] fcntl: Fix struct flock for 32-bit architectures
...4 --- a/usr/include/fcntl.h +++ b/usr/include/fcntl.h @@ -11,17 +11,30 @@ #include <sys/types.h> #if defined(__mips__) && ! defined(__mips64) # include <klibc/archfcntl.h> +#elif _BITSIZE == 32 +/* We want a struct flock with 64-bit offsets, which we define below */ +# define HAVE_ARCH_STRUCT_FLOCK #endif #include <linux/fcntl.h> #include <bitsize.h> -#if _BITSIZE == 32 +#if !defined(__mips__) && _BITSIZE == 32 -/* This is ugly, but "struct flock" has actually been defined with - a long off_t, so it's really "struct flock64". It just happe...