Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1587208 > unrolled thread

[PATCH] uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error

Started by"Dmitry V. Levin" <ldv@altlinux.org>
First post2017-02-24 01:30 +0100
Last post2017-02-25 15:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [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

#1587208 — [PATCH] uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error

From"Dmitry V. Levin" <ldv@altlinux.org>
Date2017-02-24 01:30 +0100
Subject[PATCH] uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error
Message-ID<tebVL-py-1@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1588142 — Re: [PATCH] uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error

FromPablo Neira Ayuso <pablo@netfilter.org>
Date2017-02-25 15:00 +0100
SubjectRe: [PATCH] uapi: fix linux/netfilter/xt_hashlimit.h userspace compilation error
Message-ID<teL3b-8f-1@gated-at.bofh.it>
In reply to#1587208
On Fri, Feb 24, 2017 at 03:23:20AM +0300, Dmitry V. Levin wrote:
> 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];

Applied, thanks.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web