aboutsummaryrefslogtreecommitdiff
path: root/system/include/sys/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'system/include/sys/socket.h')
-rw-r--r--system/include/sys/socket.h13
1 files changed, 12 insertions, 1 deletions
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
+