All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] add missing sys/file.h include
       [not found] <20210820141554.134411-1-alex_y_xu.ref@yahoo.ca>
@ 2021-08-20 14:15 ` Alex Xu
  0 siblings, 0 replies; only message in thread
From: Alex Xu @ 2021-08-20 14:15 UTC (permalink / raw)
  To: lvm-devel

required for LOCK_EX etc on musl
---
 lib/device/dev-cache.c | 1 +
 tools/lvmdevices.c     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c
index d7fa93fd6..d54a63fbe 100644
--- a/lib/device/dev-cache.c
+++ b/lib/device/dev-cache.c
@@ -29,6 +29,7 @@
 #include <unistd.h>
 #include <dirent.h>
 #include <locale.h>
+#include <sys/file.h>
 
 struct dev_iter {
 	struct btree_iter *current;
diff --git a/tools/lvmdevices.c b/tools/lvmdevices.c
index 3448bdd14..aa793f2e4 100644
--- a/tools/lvmdevices.c
+++ b/tools/lvmdevices.c
@@ -16,6 +16,8 @@
 #include "lib/cache/lvmcache.h"
 #include "lib/device/device_id.h"
 
+#include <sys/file.h>
+
 static void _search_devs_for_pvids(struct cmd_context *cmd, struct dm_list *search_pvids, struct dm_list *found_devs)
 {
 	struct dev_iter *iter;
-- 
2.33.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-20 14:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20210820141554.134411-1-alex_y_xu.ref@yahoo.ca>
2021-08-20 14:15 ` [PATCH] add missing sys/file.h include Alex Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.