Blame 0002-Fix-glibc-2.36-build-mount.h-conflicts.patch
|
|
f0911b9 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
f0911b9 |
From: Robbie Harwood <rharwood@redhat.com>
|
|
|
f0911b9 |
Date: Thu, 28 Jul 2022 16:11:24 -0400
|
|
|
f0911b9 |
Subject: [PATCH] Fix glibc 2.36 build (mount.h conflicts)
|
|
|
f0911b9 |
|
|
|
f0911b9 |
glibc has decided that sys/mount.h and linux/mount.h are no longer
|
|
|
f0911b9 |
usable at the same time. This broke the build, since linux/fs.h itself
|
|
|
f0911b9 |
includes linux/mount.h. For now, fix the build by only including
|
|
|
f0911b9 |
sys/mount.h where we need it.
|
|
|
f0911b9 |
|
|
|
f0911b9 |
See-also: https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E
|
|
|
f0911b9 |
Resolves: #227
|
|
|
f0911b9 |
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
|
|
|
f0911b9 |
(cherry picked from commit bc65d63ebf8fe6ac8a099ff15ca200986dba1565)
|
|
|
f0911b9 |
---
|
|
|
f0911b9 |
src/gpt.c | 1 +
|
|
|
f0911b9 |
src/linux.c | 1 +
|
|
|
f0911b9 |
src/util.h | 1 -
|
|
|
f0911b9 |
3 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
f0911b9 |
|
|
|
f0911b9 |
diff --git a/src/gpt.c b/src/gpt.c
|
|
|
f0911b9 |
index 1eda049..21413c3 100644
|
|
|
f0911b9 |
--- a/src/gpt.c
|
|
|
f0911b9 |
+++ b/src/gpt.c
|
|
|
f0911b9 |
@@ -17,6 +17,7 @@
|
|
|
f0911b9 |
#include <stdio.h>
|
|
|
f0911b9 |
#include <stdlib.h>
|
|
|
f0911b9 |
#include <string.h>
|
|
|
f0911b9 |
+#include <sys/mount.h>
|
|
|
f0911b9 |
#include <sys/param.h>
|
|
|
f0911b9 |
#include <sys/stat.h>
|
|
|
f0911b9 |
#include <sys/utsname.h>
|
|
|
f0911b9 |
diff --git a/src/linux.c b/src/linux.c
|
|
|
f0911b9 |
index 47e45ae..1780816 100644
|
|
|
f0911b9 |
--- a/src/linux.c
|
|
|
f0911b9 |
+++ b/src/linux.c
|
|
|
f0911b9 |
@@ -20,6 +20,7 @@
|
|
|
f0911b9 |
#include <stdbool.h>
|
|
|
f0911b9 |
#include <stdio.h>
|
|
|
f0911b9 |
#include <sys/ioctl.h>
|
|
|
f0911b9 |
+#include <sys/mount.h>
|
|
|
f0911b9 |
#include <sys/socket.h>
|
|
|
f0911b9 |
#include <sys/sysmacros.h>
|
|
|
f0911b9 |
#include <sys/types.h>
|
|
|
f0911b9 |
diff --git a/src/util.h b/src/util.h
|
|
|
f0911b9 |
index 3300666..1e67e44 100644
|
|
|
f0911b9 |
--- a/src/util.h
|
|
|
f0911b9 |
+++ b/src/util.h
|
|
|
f0911b9 |
@@ -23,7 +23,6 @@
|
|
|
f0911b9 |
#include <stdio.h>
|
|
|
f0911b9 |
#include <string.h>
|
|
|
f0911b9 |
#include <sys/ioctl.h>
|
|
|
f0911b9 |
-#include <sys/mount.h>
|
|
|
f0911b9 |
#include <sys/stat.h>
|
|
|
f0911b9 |
#include <sys/types.h>
|
|
|
f0911b9 |
#include <tgmath.h>
|