From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - add missing sys/file.h include
Date: Mon, 23 Aug 2021 14:25:23 +0000 (GMT) [thread overview]
Message-ID: <20210823142523.461AF385842C@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a6a8443a07f891246fa68bda9cc8e3937b6ddbb6
Commit: a6a8443a07f891246fa68bda9cc8e3937b6ddbb6
Parent: 72af1cb0857afffd56f71847fcb9504d491c13e4
Author: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
AuthorDate: Mon Aug 23 09:24:45 2021 -0500
Committer: David Teigland <teigland@redhat.com>
CommitterDate: Mon Aug 23 09:24:45 2021 -0500
add missing sys/file.h include
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 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;
reply other threads:[~2021-08-23 14:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210823142523.461AF385842C@sourceware.org \
--to=teigland@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.