Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1587208
| From | "Dmitry V. Levin" <ldv@altlinux.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error |
| Date | 2017-02-24 01:30 +0100 |
| Message-ID | <tebVL-py-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error "Dmitry V. Levin" <ldv@altlinux.org> - 2017-02-24 01:30 +0100 Re: [PATCH] uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error Pablo Neira Ayuso <pablo@netfilter.org> - 2017-02-25 15:00 +0100
csiph-web