|
@@ -27,6 +27,10 @@
|
|
|
|
|
|
#include "sal_ipaddr.h"
|
|
#include "sal_ipaddr.h"
|
|
|
|
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
+extern "C" {
|
|
|
|
+#endif
|
|
|
|
+
|
|
#if !defined(socklen_t) && !defined(SOCKLEN_T_DEFINED)
|
|
#if !defined(socklen_t) && !defined(SOCKLEN_T_DEFINED)
|
|
typedef uint32_t socklen_t;
|
|
typedef uint32_t socklen_t;
|
|
#endif
|
|
#endif
|
|
@@ -175,4 +179,8 @@ int sal_socket(int domain, int type, int protocol);
|
|
int sal_closesocket(int socket);
|
|
int sal_closesocket(int socket);
|
|
int sal_ioctlsocket(int socket, long cmd, void *arg);
|
|
int sal_ioctlsocket(int socket, long cmd, void *arg);
|
|
|
|
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
+}
|
|
|
|
+#endif
|
|
|
|
+
|
|
#endif /* SAL_SOCKET_H__ */
|
|
#endif /* SAL_SOCKET_H__ */
|