diff --git a/recipes-core/musl/files/openharmony-linux-user.patch b/recipes-core/musl/files/openharmony-linux-user.patch index 189a2b86692b3a1b63adb9ef8706c4a8ee15dccb..5c4c603818cedc804af3e2ec09d535c743bd2801 100644 --- a/recipes-core/musl/files/openharmony-linux-user.patch +++ b/recipes-core/musl/files/openharmony-linux-user.patch @@ -100,35 +100,6 @@ index 984db6806418..73793e47ef53 100644 #define __NEED_time_t #define __NEED_clockid_t #define __NEED_struct_timespec -diff --git a/include/sys/socket.h b/include/sys/socket.h -index 38f5bb17b3b8..fe3c46841693 100644 ---- a/include/sys/socket.h -+++ b/include/sys/socket.h -@@ -19,6 +19,10 @@ extern "C" { - - #include <bits/socket.h> - -+#ifdef __MUSL__ -+#include <linux/socket.h> -+#endif -+ - struct msghdr { - void *msg_name; - socklen_t msg_namelen; -@@ -369,11 +373,13 @@ struct sockaddr { - char sa_data[14]; - }; - -+#ifndef __MUSL__ - struct sockaddr_storage { - sa_family_t ss_family; - char __ss_padding[128-sizeof(long)-sizeof(sa_family_t)]; - unsigned long __ss_align; - }; -+#endif - - int socket (int, int, int); - int socketpair (int, int, int, int [2]); diff --git a/include/sys/sysinfo.h b/include/sys/sysinfo.h index 6a3931e52010..9b095ffb500b 100644 --- a/include/sys/sysinfo.h