summaryrefslogtreecommitdiff
path: root/networking/libiproute/libnetlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/libnetlink.h')
-rw-r--r--networking/libiproute/libnetlink.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/networking/libiproute/libnetlink.h b/networking/libiproute/libnetlink.h
index e149f52..7507c52 100644
--- a/networking/libiproute/libnetlink.h
+++ b/networking/libiproute/libnetlink.h
@@ -8,6 +8,11 @@
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
+
+#if __GNUC_PREREQ(4,1)
+# pragma GCC visibility push(hidden)
+#endif
+
struct rtnl_handle
{
int fd;
@@ -43,4 +48,8 @@ extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, void *data, i
extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
+#if __GNUC_PREREQ(4,1)
+# pragma GCC visibility pop
+#endif
+
#endif /* __LIBNETLINK_H__ */