Skip to contentSkip to conversation

device-utils.c: Use linux mount.h instead of sys/mount.h

PATCH In review Khem Raj 2 participants 2 messages Jul 25, 2022 – Jul 27, 2022 Btrfs file system

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 device-utils.c: Use linux mount.h instead of sys/mount.h

This file includes linucx/fs.h which includes linux/mount.h and with glibc 2.36 linux/mount.h and glibc mount.h are not compatible [1] therefore try to avoid including both headers

[1] https://sourceware.org/glibc/wiki/Release/2.36

---
 common/device-utils.c | 1 -
 1 file changed, 1 deletion(-)
common/device-utils.c +0 -1
index 617b6746..25a4fb8c 100644
@@ -15,7 +15,6 @@
  */
 
 #include <sys/ioctl.h>
-#include <sys/mount.h>
 #include <sys/statfs.h>
 #include <sys/types.h>
 #include <stdio.h>
Signature · 1 line
2.37.1