1 #ifndef _MUSL_SOCKET_H 2 #define _MUSL_SOCKET_H 3 4 #include <sys/socket.h> 5 6 #ifdef __cplusplus 7 extern "C" { 8 #endif 9 10 #ifdef OHOS_SOCKET_HOOK_ENABLE 11 #define MuslSocket(func) __libc_ ## func 12 int __libc_socket(int, int, int); 13 #else 14 #define MuslSocket(func) func 15 #endif 16 17 #ifdef __cplusplus 18 } 19 #endif 20 21 #endif