summaryrefslogtreecommitdiff
path: root/include/mingw.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-15 18:22:43 +1000
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-09-20 17:51:16 +1000
commit52748f68338010d28979c653ad17ca1f14d3df1a (patch)
tree08b5d11a2a4c63500967a4f2c2e869dc487e39be /include/mingw.h
parentb34e416fa9d712bb4138911a2536ee709490d96b (diff)
downloadbusybox-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.h6
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
177NOIMPL(mingw_socket,int domain UNUSED_PARAM, int type UNUSED_PARAM, int protocol UNUSED_PARAM); 177#ifdef CONFIG_WIN32_NET
178int mingw_socket(int domain, int type, int protocol);
179
180# define socket mingw_socket
181#endif
178NOIMPL(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); 182NOIMPL(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);
179NOIMPL(mingw_listen,SOCKET s UNUSED_PARAM,int backlog UNUSED_PARAM); 183NOIMPL(mingw_listen,SOCKET s UNUSED_PARAM,int backlog UNUSED_PARAM);
180NOIMPL(mingw_bind,SOCKET s UNUSED_PARAM,const struct sockaddr* sa UNUSED_PARAM,int salen UNUSED_PARAM); 184NOIMPL(mingw_bind,SOCKET s UNUSED_PARAM,const struct sockaddr* sa UNUSED_PARAM,int salen UNUSED_PARAM);