Skip to contentSkip to conversation

uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error

PATCH Applied Dmitry V. Levin 2 participants 2 messages Feb 24, 2017 – Feb 25, 2017 netfilter

lore
Share & tools
lore
#0 lore raw

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

Include <linux/limits.h> like some of uapi/linux/netfilter/xt_*.h headers do to fix the following linux/netfilter/xt_hashlimit.h userspace compilation error:

/usr/include/linux/netfilter/xt_hashlimit.h:90:12: error: 'NAME_MAX' undeclared here (not in a function)
char name[NAME_MAX];

---
 include/uapi/linux/netfilter/xt_hashlimit.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/linux/netfilter/xt_hashlimit.h +1 -0
index 3efc0ca..79da349 100644
@@ -2,6 +2,7 @@
 #define _UAPI_XT_HASHLIMIT_H
 
 #include <linux/types.h>
+#include <linux/limits.h>
 #include <linux/if.h>
 
 /* timings are in milliseconds. */
Signature · 1 line
ldv
maintainer Applied
#1 lore raw
Quoted 6 lines · Dmitry V. Levin

Include <linux/limits.h> like some of uapi/linux/netfilter/xt_*.h headers do to fix the following linux/netfilter/xt_hashlimit.h userspace compilation error:

/usr/include/linux/netfilter/xt_hashlimit.h:90:12: error: 'NAME_MAX' undeclared here (not in a function)
char name[NAME_MAX];

Applied, thanks.