* [PATCH] uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error
@ 2017-02-24 0:23 Dmitry V. Levin
2017-02-25 12:33 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry V. Levin @ 2017-02-24 0:23 UTC (permalink / raw)
To: Pablo Neira Ayuso, Jozsef Kadlecsik
Cc: netfilter-devel, coreteam, linux-kernel
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];
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
---
include/uapi/linux/netfilter/xt_hashlimit.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/linux/netfilter/xt_hashlimit.h b/include/uapi/linux/netfilter/xt_hashlimit.h
index 3efc0ca..79da349 100644
--- a/include/uapi/linux/netfilter/xt_hashlimit.h
+++ b/include/uapi/linux/netfilter/xt_hashlimit.h
@@ -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. */
--
ldv
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-25 12:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-24 0:23 [PATCH] uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error Dmitry V. Levin
2017-02-25 12:33 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).