Explorar o código

[DFS] add sockaddr_storage structure in sys/socket.h

Bernard Xiong %!s(int64=9) %!d(string=hai) anos
pai
achega
d1a1cbfdd7
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      components/dfs/filesystems/lwip/sys/socket.h

+ 8 - 0
components/dfs/filesystems/lwip/sys/socket.h

@@ -31,6 +31,14 @@ extern "C" {
 
 #include <lwip/sockets.h>
 
+typedef uint16_t sa_family_t;
+
+struct sockaddr_storage
+{
+    sa_family_t ss_family;       /* Address family */
+    char        ss_data[14];     /* 14-bytes of address data */
+};
+
 int accept(int s, struct sockaddr *addr, socklen_t *addrlen);
 int bind(int s, const struct sockaddr *name, socklen_t namelen);
 int shutdown(int s, int how);