aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-12 11:13:39 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-12 11:13:39 -0800
commit3682e4b3b4b12dbe3b7f667b4d8a7fcb45f5965a (patch)
treee854c3b07a57c48cc21a7dc335f5ca487fae3b8c /system
parent08d261d183a6071f8d72ea9af05c59c152f28c95 (diff)
header fixes
Diffstat (limited to 'system')
-rw-r--r--system/include/net/netdb.h13
-rw-r--r--system/include/net/netinet/in.h13
-rw-r--r--system/include/sys/socket.h13
3 files changed, 38 insertions, 1 deletions
diff --git a/system/include/net/netdb.h b/system/include/net/netdb.h
index ee33be5f..4151ccb5 100644
--- a/system/include/net/netdb.h
+++ b/system/include/net/netdb.h
@@ -1,4 +1,11 @@
+#ifndef _NET_NETDB_H
+#define _NET_NETDB_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct addrinfo
{
int ai_flags;
@@ -25,3 +32,9 @@ struct hostent
char **h_addr_list;
};
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
diff --git a/system/include/net/netinet/in.h b/system/include/net/netinet/in.h
index 7ac40c03..76532916 100644
--- a/system/include/net/netinet/in.h
+++ b/system/include/net/netinet/in.h
@@ -1,4 +1,11 @@
+#ifndef _NET_NETINET_IN_H
+#define _NET_NETINET_IN_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define INET_ADDRSTRLEN 16
#define INADDR_ANY 0
@@ -26,3 +33,9 @@ struct sockaddr_in6 {
int sin6_scope_id;
};
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
diff --git a/system/include/sys/socket.h b/system/include/sys/socket.h
index 68e06509..2c23ddb7 100644
--- a/system/include/sys/socket.h
+++ b/system/include/sys/socket.h
@@ -1,4 +1,9 @@
-/* */
+#ifndef _SYS_SOCKET_H
+#define _SYS_SOCKET_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
#define SOMAXCONN 128
#define PF_INET 2
@@ -53,3 +58,9 @@ struct msghdr
int msg_flags;
};
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+