From 7983983a2912165aaa3b9fff2f7aa42421d2f730 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 13 Aug 2013 10:48:50 +0200 Subject: build: avoid symbol namespace pollution As of f40eabb01 (add pkt_buff and protocol helper functions) libnetfilter_queue accidentally exports the internal function named 'checksum'. This is a bit too generic and may cause crashes with applications that worked fine before. This patch makes the functions checksum, checksum_tcpudp_ipv4 and checksum_tcpudp_ipv6 local by building with fvis-hidden and adding EXPORTs for the legacy api calls and the ones that seem to have missing EXPORT tags (mainly pktbuff api). Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- src/internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/internal.h') diff --git a/src/internal.h b/src/internal.h index 37bf79e..7f9d5f4 100644 --- a/src/internal.h +++ b/src/internal.h @@ -2,6 +2,8 @@ #define INTERNAL_H 1 #include "config.h" +#include +#include #ifdef HAVE_VISIBILITY_HIDDEN # define __visible __attribute__((visibility("default"))) # define EXPORT_SYMBOL(x) typeof(x) (x) __visible -- cgit v1.2.3