From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Engelhardt Subject: [PATCH 1/3] libipulog: rebuild required header file inclusion Date: Sat, 18 Dec 2010 21:17:30 +0100 Message-ID: <1292703453-16324-2-git-send-email-jengelh@medozas.de> References: <1292703453-16324-1-git-send-email-jengelh@medozas.de> Cc: netfilter-devel@vger.kernel.org To: pablo@netfilter.org Return-path: Received: from borg.medozas.de ([188.40.89.202]:47412 "EHLO borg.medozas.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932156Ab0LRURf (ORCPT ); Sat, 18 Dec 2010 15:17:35 -0500 In-Reply-To: <1292703453-16324-1-git-send-email-jengelh@medozas.de> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Use C++ headers for C++ and throw out #includes that are not needed for the header file. Signed-off-by: Jan Engelhardt --- include/libnetfilter_log/libipulog.h | 9 ++++++--- src/libipulog_compat.c | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/libnetfilter_log/libipulog.h b/include/libnetfilter_log/libipulog.h index 0278862..bb6736a 100644 --- a/include/libnetfilter_log/libipulog.h +++ b/include/libnetfilter_log/libipulog.h @@ -1,9 +1,12 @@ #ifndef _LIBIPULOG_H #define _LIBIPULOG_H -#include -#include -#include +#ifdef __cplusplus +# include +#else +# include +#endif +#include /* FIXME: glibc sucks */ #ifndef MSG_TRUNC diff --git a/src/libipulog_compat.c b/src/libipulog_compat.c index 9d93bcd..8c90cdb 100644 --- a/src/libipulog_compat.c +++ b/src/libipulog_compat.c @@ -1,3 +1,4 @@ +#include #include #include #include -- 1.7.1