aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mingw.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/mingw.h b/include/mingw.h
index 198ea911e..31795bc40 100644
--- a/include/mingw.h
+++ b/include/mingw.h
@@ -190,19 +190,15 @@ int ioctl(int fd, int code, ...);
190 */ 190 */
191#define hstrerror strerror 191#define hstrerror strerror
192 192
193#ifdef CONFIG_WIN32_NET
194int mingw_socket(int domain, int type, int protocol); 193int mingw_socket(int domain, int type, int protocol);
195int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz); 194int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz);
196 195
197# define socket mingw_socket
198# define connect mingw_connect
199#endif
200NOIMPL(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); 196NOIMPL(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);
201NOIMPL(mingw_listen,SOCKET s UNUSED_PARAM,int backlog UNUSED_PARAM); 197NOIMPL(mingw_listen,SOCKET s UNUSED_PARAM,int backlog UNUSED_PARAM);
202NOIMPL(mingw_bind,SOCKET s UNUSED_PARAM,const struct sockaddr* sa UNUSED_PARAM,int salen UNUSED_PARAM); 198NOIMPL(mingw_bind,SOCKET s UNUSED_PARAM,const struct sockaddr* sa UNUSED_PARAM,int salen UNUSED_PARAM);
203 199
204/* Windows declaration is different */
205#define socket mingw_socket 200#define socket mingw_socket
201#define connect mingw_connect
206#define sendto mingw_sendto 202#define sendto mingw_sendto
207#define listen mingw_listen 203#define listen mingw_listen
208#define bind mingw_bind 204#define bind mingw_bind