Patchwork [libnfacct] Add include needed for integer types definition.

login
register
mail settings
Submitter Eric Leblond
Date Nov. 4, 2012, 9:54 a.m.
Message ID <1352022852-29382-2-git-send-email-eric@regit.org>
Download mbox | patch
Permalink /patch/196986/
State Not Applicable
Headers show

Comments

Eric Leblond - Nov. 4, 2012, 9:54 a.m.
---
 include/libnetfilter_acct/libnetfilter_acct.h |    1 +
 1 file changed, 1 insertion(+)
Jan Engelhardt - Nov. 4, 2012, 5:10 p.m.
On Sunday 2012-11-04 10:54, Eric Leblond wrote:

>---
> include/libnetfilter_acct/libnetfilter_acct.h |    1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/include/libnetfilter_acct/libnetfilter_acct.h b/include/libnetfilter_acct/libnetfilter_acct.h
>index a326c3c..48fe8f4 100644
>--- a/include/libnetfilter_acct/libnetfilter_acct.h
>+++ b/include/libnetfilter_acct/libnetfilter_acct.h
>@@ -2,6 +2,7 @@
> #define _LIBNETFILTER_ACCT_H_
> 
> #include <sys/types.h>
>+#include <inttypes.h>
> #include <linux/netfilter/nfnetlink_acct.h>

The intXX_t pieces are standardized in <stdint.h>
(Or, to cater for C++,

#if defined(__cplusplus) && \
    (__cplusplus >= 201100L || defined(__GXX_EXPERIMENTAL_CXX0X__))
#	include <cstdint>
#else
#	include <stdint.h>
#endif

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/include/libnetfilter_acct/libnetfilter_acct.h b/include/libnetfilter_acct/libnetfilter_acct.h
index a326c3c..48fe8f4 100644
--- a/include/libnetfilter_acct/libnetfilter_acct.h
+++ b/include/libnetfilter_acct/libnetfilter_acct.h
@@ -2,6 +2,7 @@ 
 #define _LIBNETFILTER_ACCT_H_
 
 #include <sys/types.h>
+#include <inttypes.h>
 #include <linux/netfilter/nfnetlink_acct.h>
 
 struct nfacct;