summaryrefslogtreecommitdiff
path: root/zebra/kernel_socket.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-03-26 16:35:52 +0100
committerGitHub <noreply@github.com>2019-03-26 16:35:52 +0100
commitaa69ac38f409cd190e97adee3caa70cf4e6274a1 (patch)
treecbabb7e795e13539b5fabef1a6d73b01e36e1879 /zebra/kernel_socket.h
parent860ff0589632f870e282ef2ad8ae9c8697053df9 (diff)
parent51e94aa7b167b5197f634eec11dc456994787993 (diff)
Merge pull request #4013 from manuhalo/zebra_c++_guards
zebra: add extern C guards to headers
Diffstat (limited to 'zebra/kernel_socket.h')
-rw-r--r--zebra/kernel_socket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/zebra/kernel_socket.h b/zebra/kernel_socket.h
index 096a21f782..15079d796d 100644
--- a/zebra/kernel_socket.h
+++ b/zebra/kernel_socket.h
@@ -22,6 +22,10 @@
#ifndef __ZEBRA_KERNEL_SOCKET_H
#define __ZEBRA_KERNEL_SOCKET_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Error codes of zebra. */
#define ZEBRA_ERR_NOERROR 0
#define ZEBRA_ERR_RTEXIST -1
@@ -38,4 +42,8 @@ extern int rtm_write(int, union sockunion *, union sockunion *,
enum blackhole_type, int);
extern const struct message rtm_type_str[];
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __ZEBRA_KERNEL_SOCKET_H */