uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error
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];
Signed-off-by Dmitry V. Levin <[email protected]>
--- include/uapi/linux/netfilter/xt_hashlimit.h | 1 + 1 file changed, 1 insertion(+)
include/uapi/linux/netfilter/xt_hashlimit.h +1 -0
@@ -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
Quoted 6 lines · Dmitry V. Levin
Include <
linux/limits.h> like some ofuapi/linux/netfilter/xt_*.hheaders do to fix the followinglinux/netfilter/xt_hashlimit.huserspace 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.