1 From bc65d63ebf8fe6ac8a099ff15ca200986dba1565 Mon Sep 17 00:00:00 2001
2 From: Robbie Harwood <rharwood@redhat.com>
3 Date: Thu, 28 Jul 2022 16:11:24 -0400
4 Subject: [PATCH] Fix glibc 2.36 build (mount.h conflicts)
6 glibc has decided that sys/mount.h and linux/mount.h are no longer
7 usable at the same time. This broke the build, since linux/fs.h itself
8 includes linux/mount.h. For now, fix the build by only including
9 sys/mount.h where we need it.
11 See-also: https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E
13 Signed-off-by: Robbie Harwood <rharwood@redhat.com>
18 3 files changed, 2 insertions(+), 1 deletion(-)
20 diff --git a/src/gpt.c b/src/gpt.c
21 index 1eda0497..21413c3b 100644
28 +#include <sys/mount.h>
29 #include <sys/param.h>
31 #include <sys/utsname.h>
32 diff --git a/src/linux.c b/src/linux.c
33 index 47e45ae4..1780816f 100644
39 #include <sys/ioctl.h>
40 +#include <sys/mount.h>
41 #include <sys/socket.h>
42 #include <sys/sysmacros.h>
43 #include <sys/types.h>
44 diff --git a/src/util.h b/src/util.h
45 index 3300666f..1e67e447 100644
51 #include <sys/ioctl.h>
52 -#include <sys/mount.h>
54 #include <sys/types.h>