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

From: Dmitry V. Levin
Date: Wed Feb 15 2017 - 15:04:37 EST


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];

Signed-off-by: Dmitry V. Levin <ldv@xxxxxxxxxxxx>
---
include/uapi/linux/dlm_netlink.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/dlm_netlink.h b/include/uapi/linux/dlm_netlink.h
index 647c8ef..ad60964 100644
--- a/include/uapi/linux/dlm_netlink.h
+++ b/include/uapi/linux/dlm_netlink.h
@@ -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,
--
ldv