summaryrefslogtreecommitdiff
path: root/components/dfs
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-09-25 06:55:55 +0800
committerBernard Xiong <[email protected]>2015-09-25 06:55:55 +0800
commitd1a1cbfdd7fea73d0e54898968937379dceaf5f8 (patch)
tree1872f77b883ad6e603ce43a88f13ce71bd9e214f /components/dfs
parent730592df19f3d41f2c8db750bd6aa5675fc0319f (diff)
[DFS] add sockaddr_storage structure in sys/socket.h
Diffstat (limited to 'components/dfs')
-rw-r--r--components/dfs/filesystems/lwip/sys/socket.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/dfs/filesystems/lwip/sys/socket.h b/components/dfs/filesystems/lwip/sys/socket.h
index 9a789ca094..5317e05e4c 100644
--- a/components/dfs/filesystems/lwip/sys/socket.h
+++ b/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);