From 4b125dd408d54487dc8843b9553502aa0c4167f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Wed, 20 Feb 2019 19:07:12 +0100 Subject: fix POSIX_FADV_DONTNEED/_NOREUSE on s390x On s390x, POSIX_FADV_DONTNEED and POSIX_FADV_NOREUSE have different values than on all other architectures that Linux supports. Handle this difference by wrapping their definitions in include/fcntl.h in #ifdef, so that arch/s390x/bits/fcntl.h can override them. --- arch/s390x/bits/fcntl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch') diff --git a/arch/s390x/bits/fcntl.h b/arch/s390x/bits/fcntl.h index 1eca6ba5..a231efb4 100644 --- a/arch/s390x/bits/fcntl.h +++ b/arch/s390x/bits/fcntl.h @@ -38,3 +38,6 @@ #define F_GETOWN_EX 16 #define F_GETOWNER_UIDS 17 + +#define POSIX_FADV_DONTNEED 6 +#define POSIX_FADV_NOREUSE 7 -- cgit v1.2.1