diff options
author | Alex Xu (Hello71) <alex_y_xu@yahoo.ca> | 2021-08-23 09:24:45 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-08-23 09:24:45 -0500 |
commit | a6a8443a07f891246fa68bda9cc8e3937b6ddbb6 (patch) | |
tree | 0df060f62bbb4d0fb579cc9a301734aaf6611b5a | |
parent | 72af1cb0857afffd56f71847fcb9504d491c13e4 (diff) | |
download | lvm2-a6a8443a07f891246fa68bda9cc8e3937b6ddbb6.tar.gz |
add missing sys/file.h include
required for LOCK_EX etc on musl
-rw-r--r-- | lib/device/dev-cache.c | 1 | ||||
-rw-r--r-- | tools/lvmdevices.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/device/dev-cache.c b/lib/device/dev-cache.c index 4727ea652..d9227dfd5 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 87c39eec4..73c33c932 100644 --- a/tools/lvmdevices.c +++ b/tools/lvmdevices.c @@ -17,6 +17,8 @@ #include "lib/device/device_id.h" #include "lib/device/dev-type.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; |