summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015-05-08 09:46:50 +0100
committerRich Felker <dalias@aerifal.cx>2015-05-08 08:35:16 -0400
commit20de36cc89a4d5d44ff12511eae36eb15df982fb (patch)
tree21ab7ed443f2747ca1eda280adffb49670f8ce20 /include
parentece0c48a603a58b26672ee2eeea7554991fcafa1 (diff)
downloadmusl-20de36cc89a4d5d44ff12511eae36eb15df982fb.tar.gz
fix netinet/ether.h for c++
Diffstat (limited to 'include')
-rw-r--r--include/netinet/ether.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/netinet/ether.h b/include/netinet/ether.h
index d64c9ef5..eec7e53c 100644
--- a/include/netinet/ether.h
+++ b/include/netinet/ether.h
@@ -1,6 +1,10 @@
#ifndef _NETINET_ETHER_H
#define _NETINET_ETHER_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <netinet/if_ether.h>
char *ether_ntoa (const struct ether_addr *);
@@ -11,4 +15,8 @@ int ether_line(const char *, struct ether_addr *, char *);
int ether_ntohost(char *, const struct ether_addr *);
int ether_hostton(const char *, struct ether_addr *);
+#ifdef __cplusplus
+}
+#endif
+
#endif