Skip to contentSkip to conversation

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

PATCH New David Seifert 2 participants 2 messages Feb 7, 2023 – Feb 8, 2023

lore
Share & tools
lore
#0 lore raw

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

From: Jory Pratt <[email protected]>

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

---
 tools/vgimportdevices.c | 1 +
 1 file changed, 1 insertion(+)
tools/vgimportdevices.c +1 -0
index ab359d31c..d8260c731 100644
@@ -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;
Signature · 1 line
2.39.1
#1 lore raw

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

Dne 07. 02. 23 v 14:27 David Seifert napsal(a):

Quoted 14 lines

From: Jory Pratt <[email protected]>

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

---
  tools/vgimportdevices.c | 1 +
  1 file changed, 1 insertion(+)
tools/vgimportdevices.c +0 -0
index ab359d31c..d8260c731 100644

tools/vgimportdevices.c line 21

Quoted 7 lines
tools/vgimportdevices.c +1 -0
@@ -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;

Hi & thanks

I'll apply

Regards

Zdenek