Skip to contentSkip to conversation

main - vgimportdevices: LOCK_EX requires <sys/file.h> include

PATCH Zdenek Kabelac 1 participant 1 message Feb 10, 2023

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a1a1439215f56335a06ae5ac6ca73b5e0d734760
Commit:        a1a1439215f56335a06ae5ac6ca73b5e0d734760
Parent:        be124ae81027e8736106e4958bd2dfab971d6764
Author:        Jory Pratt <[email protected]>
AuthorDate:    Tue Feb 7 14:27:12 2023 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Feb 10 17:50:27 2023 +0100

vgimportdevices: LOCK_EX requires <sys/file.h> include

https://linux.die.net/man/2/flock

---
 tools/vgimportdevices.c | 2 ++
 1 file changed, 2 insertions(+)
tools/vgimportdevices.c +2 -0
index ab359d31c..07d07402a 100644
@@ -15,6 +15,8 @@
 #include "tools.h"
 #include "lib/cache/lvmcache.h"
 #include "lib/device/device_id.h"
+/* coverity[unnecessary_header] needed for MuslC */
+#include <sys/file.h>
 
 struct vgimportdevices_params {
 	uint32_t added_devices;