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

David Seifert <[email protected]>
Newsgroups gmane.linux.lvm.devel
Message-ID <[email protected]>
From: Jory Pratt <[email protected]>

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

Bug: https://bugs.gentoo.org/887259
---
 tools/vgimportdevices.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/vgimportdevices.c b/tools/vgimportdevices.c
index ab359d31c..d8260c731 100644
--- a/tools/vgimportdevices.c
+++ b/tools/vgimportdevices.c
@@ -15,6 +15,7 @@
 #include "tools.h"
 #include "lib/cache/lvmcache.h"
 #include "lib/device/device_id.h"
+#include <sys/file.h>
 
 struct vgimportdevices_params {
 	uint32_t added_devices;
-- 
2.39.1

--
lvm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/lvm-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.