Avoid defining psw_compat_t and s390_compat_regs if their definitions
are provided by kernel. Before Linux commit v3.10-rc1~201^2~11,
these definition were available in <asm/ptrace.h>.
* configure.ac (AC_CHECK_TYPES): Check for s390_compat_regs.
* linux/s390x/arch_regs.c [HAVE_S390_COMPAT_REGS]: Do not define
psw_compat_t and s390_compat_regs.
* NEWS: Mention this fix.
Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
* Fixed race condition in aio test.
* Fixed build with Bionic libc.
* Fixed build with glibc-2.28.
+ * Fixed build on s390 with kernel headers that do not contain Linux commit
+ v3.10-rc1~201^2~11.
Noteworthy changes in release 4.23 (2018-06-14)
===============================================
struct ptrace_peeksiginfo_args
]),,, [#include <sys/ptrace.h>])
+# For kernels that do not have v3.10-rc1~201^2~11
+AC_CHECK_TYPES([s390_compat_regs],,, [#include <asm/ptrace.h>])
+
AC_CHECK_TYPES(m4_normalize([
struct flock,
struct flock64,
+#ifndef HAVE_S390_COMPAT_REGS
typedef struct {
uint32_t mask;
uint32_t addr;
uint32_t acrs[NUM_ACRS];
uint32_t orig_gpr2;
} s390_compat_regs;
+#endif
static union {
s390_compat_regs s390_regs;