diff mbox

[libnfacct] Add include needed for integer types definition.

Message ID 1352022852-29382-2-git-send-email-eric@regit.org
State Not Applicable
Headers show

Commit Message

Eric Leblond Nov. 4, 2012, 9:54 a.m. UTC
---
 include/libnetfilter_acct/libnetfilter_acct.h |    1 +
 1 file changed, 1 insertion(+)

Comments

Jan Engelhardt Nov. 4, 2012, 5:10 p.m. UTC | #1
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
diff mbox

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;