1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

add missing sys/file.h include

required for LOCK_EX etc on musl
This commit is contained in:
Alex Xu (Hello71) 2021-08-23 09:24:45 -05:00 committed by David Teigland
parent 72af1cb085
commit a6a8443a07
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@
#include <unistd.h> #include <unistd.h>
#include <dirent.h> #include <dirent.h>
#include <locale.h> #include <locale.h>
#include <sys/file.h>
struct dev_iter { struct dev_iter {
struct btree_iter *current; struct btree_iter *current;

View File

@ -17,6 +17,8 @@
#include "lib/device/device_id.h" #include "lib/device/device_id.h"
#include "lib/device/dev-type.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) static void _search_devs_for_pvids(struct cmd_context *cmd, struct dm_list *search_pvids, struct dm_list *found_devs)
{ {
struct dev_iter *iter; struct dev_iter *iter;