Skip to contentSkip to conversation

uapi: fix linux/dlm_netlink.h userspace compilation error

PATCH New Dmitry V. Levin 1 participant 1 message Feb 15, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uapi: fix linux/dlm_netlink.h userspace compilation error

Include <linux/dlmconstants.h> to fix the following linux/dlm_netlink.h userspace compilation error:

/usr/include/linux/dlm_netlink.h:35:21: error: 'DLM_RESNAME_MAXLEN' undeclared here (not in a function)
char resource_name[DLM_RESNAME_MAXLEN];

---
 include/uapi/linux/dlm_netlink.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/linux/dlm_netlink.h +1 -0
index 647c8ef..ad60964 100644
@@ -10,6 +10,7 @@
 #define _DLM_NETLINK_H
 
 #include <linux/types.h>
+#include <linux/dlmconstants.h>		/* For DLM_RESNAME_MAXLEN. */
 
 enum {
 	DLM_STATUS_WAITING = 1,
Signature · 1 line
ldv