Browse Source

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 <ldv@altlinux.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Dmitry V. Levin 8 years ago
parent
commit
f216827342
1 changed files with 1 additions and 0 deletions
  1. 1 0
      include/uapi/linux/netfilter/xt_hashlimit.h

+ 1 - 0
include/uapi/linux/netfilter/xt_hashlimit.h

@@ -2,6 +2,7 @@
 #define _UAPI_XT_HASHLIMIT_H
 #define _UAPI_XT_HASHLIMIT_H
 
 
 #include <linux/types.h>
 #include <linux/types.h>
+#include <linux/limits.h>
 #include <linux/if.h>
 #include <linux/if.h>
 
 
 /* timings are in milliseconds. */
 /* timings are in milliseconds. */