* [PATCH 0/2] Add include for nflog and nfacct
@ 2012-11-04 9:51 Eric Leblond
2012-11-04 9:54 ` [libnflog PATCH] Add include needed for integer type definition Eric Leblond
0 siblings, 1 reply; 4+ messages in thread
From: Eric Leblond @ 2012-11-04 9:51 UTC (permalink / raw)
To: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
Hi,
The libnetfilter_log and libnetfilter_acct include can't be put directly
on top of a source file because some integer types are not defined.
Following this mail are two patches to fix this problem.
BR,
--
Eric
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [libnflog PATCH] Add include needed for integer type definition.
2012-11-04 9:51 [PATCH 0/2] Add include for nflog and nfacct Eric Leblond
@ 2012-11-04 9:54 ` Eric Leblond
2012-11-04 9:54 ` [libnfacct PATCH] Add include needed for integer types definition Eric Leblond
0 siblings, 1 reply; 4+ messages in thread
From: Eric Leblond @ 2012-11-04 9:54 UTC (permalink / raw)
To: netfilter-devel; +Cc: eric
---
include/libnetfilter_log/libnetfilter_log.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/libnetfilter_log/libnetfilter_log.h b/include/libnetfilter_log/libnetfilter_log.h
index 6b0d3b0..a1331de 100644
--- a/include/libnetfilter_log/libnetfilter_log.h
+++ b/include/libnetfilter_log/libnetfilter_log.h
@@ -9,6 +9,7 @@
#ifndef __LIBNETFILTER_LOG_H
#define __LIBNETFILTER_LOG_H
+#include <sys/types.h>
#include <libnetfilter_log/linux_nfnetlink_log.h>
struct nflog_handle;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [libnfacct PATCH] Add include needed for integer types definition.
2012-11-04 9:54 ` [libnflog PATCH] Add include needed for integer type definition Eric Leblond
@ 2012-11-04 9:54 ` Eric Leblond
2012-11-04 17:10 ` Jan Engelhardt
0 siblings, 1 reply; 4+ messages in thread
From: Eric Leblond @ 2012-11-04 9:54 UTC (permalink / raw)
To: netfilter-devel; +Cc: eric
---
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>
struct nfacct;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [libnfacct PATCH] Add include needed for integer types definition.
2012-11-04 9:54 ` [libnfacct PATCH] Add include needed for integer types definition Eric Leblond
@ 2012-11-04 17:10 ` Jan Engelhardt
0 siblings, 0 replies; 4+ messages in thread
From: Jan Engelhardt @ 2012-11-04 17:10 UTC (permalink / raw)
To: Eric Leblond; +Cc: netfilter-devel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-04 17:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-04 9:51 [PATCH 0/2] Add include for nflog and nfacct Eric Leblond
2012-11-04 9:54 ` [libnflog PATCH] Add include needed for integer type definition Eric Leblond
2012-11-04 9:54 ` [libnfacct PATCH] Add include needed for integer types definition Eric Leblond
2012-11-04 17:10 ` Jan Engelhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).