summaryrefslogtreecommitdiff
path: root/include/libmnl
diff options
context:
space:
mode:
Diffstat (limited to 'include/libmnl')
-rw-r--r--include/libmnl/libmnl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h
index d766183..b64306a 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -6,6 +6,10 @@
#include <sys/socket.h> /* for sa_family_t */
#include <linux/netlink.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Netlink socket API
*/
@@ -156,4 +160,8 @@ extern int mnl_cb_run2(const void *buf, size_t numbytes, unsigned int seq,
#define SOL_NETLINK 270
#endif
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif