diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-15 18:22:43 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-20 17:51:16 +1000 |
commit | 52748f68338010d28979c653ad17ca1f14d3df1a (patch) | |
tree | 08b5d11a2a4c63500967a4f2c2e869dc487e39be /include/mingw.h | |
parent | b34e416fa9d712bb4138911a2536ee709490d96b (diff) | |
download | busybox-w32-52748f68338010d28979c653ad17ca1f14d3df1a.tar.gz busybox-w32-52748f68338010d28979c653ad17ca1f14d3df1a.tar.bz2 busybox-w32-52748f68338010d28979c653ad17ca1f14d3df1a.zip |
win32: reimplement socket()
Diffstat (limited to 'include/mingw.h')
-rw-r--r-- | include/mingw.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mingw.h b/include/mingw.h index d9a2fabd1..b2d73ce1b 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -174,7 +174,11 @@ NOIMPL(ioctl,int fd UNUSED_PARAM, int code UNUSED_PARAM,...); | |||
174 | */ | 174 | */ |
175 | #define hstrerror strerror | 175 | #define hstrerror strerror |
176 | 176 | ||
177 | NOIMPL(mingw_socket,int domain UNUSED_PARAM, int type UNUSED_PARAM, int protocol UNUSED_PARAM); | 177 | #ifdef CONFIG_WIN32_NET |
178 | int mingw_socket(int domain, int type, int protocol); | ||
179 | |||
180 | # define socket mingw_socket | ||
181 | #endif | ||
178 | NOIMPL(mingw_sendto,SOCKET s UNUSED_PARAM, const char *buf UNUSED_PARAM, int len UNUSED_PARAM, int flags UNUSED_PARAM, const struct sockaddr *sa UNUSED_PARAM, int salen UNUSED_PARAM); | 182 | NOIMPL(mingw_sendto,SOCKET s UNUSED_PARAM, const char *buf UNUSED_PARAM, int len UNUSED_PARAM, int flags UNUSED_PARAM, const struct sockaddr *sa UNUSED_PARAM, int salen UNUSED_PARAM); |
179 | NOIMPL(mingw_listen,SOCKET s UNUSED_PARAM,int backlog UNUSED_PARAM); | 183 | NOIMPL(mingw_listen,SOCKET s UNUSED_PARAM,int backlog UNUSED_PARAM); |
180 | NOIMPL(mingw_bind,SOCKET s UNUSED_PARAM,const struct sockaddr* sa UNUSED_PARAM,int salen UNUSED_PARAM); | 184 | NOIMPL(mingw_bind,SOCKET s UNUSED_PARAM,const struct sockaddr* sa UNUSED_PARAM,int salen UNUSED_PARAM); |