diff mbox series

[libnftnl,v2] obj: ct_timeout: fix error in building tests

Message ID 20180919051039.9311-1-harshasharmaiitr@gmail.com
State Accepted
Delegated to: Pablo Neira
Headers show
Series [libnftnl,v2] obj: ct_timeout: fix error in building tests | expand

Commit Message

Harsha Sharma Sept. 19, 2018, 5:10 a.m. UTC
Add include header for NFTNL_CTTIMEOUT_ARRAY_MAX. Fixes compilation error
"../include/obj.h:43:21: error: ‘NFTNL_CTTIMEOUT_ARRAY_MAX’
undeclared here (not in a function);

Signed-off-by: Harsha Sharma <harshasharmaiitr@gmail.com>
---
Changes in v2:
 - Add compilation error in log message

 include/obj.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Pablo Neira Ayuso Sept. 20, 2018, 4:20 p.m. UTC | #1
On Wed, Sep 19, 2018 at 10:40:39AM +0530, Harsha Sharma wrote:
> Add include header for NFTNL_CTTIMEOUT_ARRAY_MAX. Fixes compilation error
> "../include/obj.h:43:21: error: ‘NFTNL_CTTIMEOUT_ARRAY_MAX’
> undeclared here (not in a function);

Applied, thanks Harsha.
diff mbox series

Patch

diff --git a/include/obj.h b/include/obj.h
index dfdbb73..26184da 100644
--- a/include/obj.h
+++ b/include/obj.h
@@ -2,6 +2,7 @@ 
 #define _OBJ_OPS_H_
 
 #include <stdint.h>
+#include <libnftnl/object.h>	/* For NFTNL_CTTIMEOUT_ARRAY_MAX. */
 #include "internal.h"
 
 struct nlattr;