diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 6 |
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 | ||
194 | int mingw_socket(int domain, int type, int protocol); | 193 | int mingw_socket(int domain, int type, int protocol); |
195 | int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz); | 194 | int mingw_connect(int sockfd, struct sockaddr *sa, size_t sz); |
196 | 195 | ||
197 | # define socket mingw_socket | ||
198 | # define connect mingw_connect | ||
199 | #endif | ||
200 | 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); | 196 | 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); |
201 | NOIMPL(mingw_listen,SOCKET s UNUSED_PARAM,int backlog UNUSED_PARAM); | 197 | NOIMPL(mingw_listen,SOCKET s UNUSED_PARAM,int backlog UNUSED_PARAM); |
202 | NOIMPL(mingw_bind,SOCKET s UNUSED_PARAM,const struct sockaddr* sa UNUSED_PARAM,int salen UNUSED_PARAM); | 198 | NOIMPL(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 |