Skip to content

Commit

Permalink
uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry V. Levin authored and Pablo Neira Ayuso committed Feb 25, 2017
1 parent 47b1f6f commit f216827
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/uapi/linux/netfilter/xt_hashlimit.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit f216827

Please sign in to comment.