diff options
author | Ron Yorston <rmy@pobox.com> | 2021-02-06 09:52:11 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-02-06 09:52:11 +0000 |
commit | 70ca88d03a7aa92720744832fd9d131a183e00be (patch) | |
tree | 937e9e211ba75875b9a5f0f5a444b45839a85783 /include | |
parent | 32e19e7ae8b0d76d69871ba234e8f0af31baff4e (diff) | |
download | busybox-w32-70ca88d03a7aa92720744832fd9d131a183e00be.tar.gz busybox-w32-70ca88d03a7aa92720744832fd9d131a183e00be.tar.bz2 busybox-w32-70ca88d03a7aa92720744832fd9d131a183e00be.zip |
win32: code shrink
Don't compile some code that isn't currently supported for WIN32.
Saves 24 bytes.
Diffstat (limited to 'include')
-rw-r--r-- | include/mingw.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/mingw.h b/include/mingw.h index a1ba5f5af..236c955d8 100644 --- a/include/mingw.h +++ b/include/mingw.h | |||
@@ -114,7 +114,6 @@ IMPL(getpwent,struct passwd *,NULL,void) | |||
114 | 114 | ||
115 | #define SIG_UNBLOCK 1 | 115 | #define SIG_UNBLOCK 1 |
116 | 116 | ||
117 | NOIMPL(FAST_FUNC sigprocmask_allsigs, int how UNUSED_PARAM); | ||
118 | typedef void (*sighandler_t)(int); | 117 | typedef void (*sighandler_t)(int); |
119 | sighandler_t winansi_signal(int signum, sighandler_t handler); | 118 | sighandler_t winansi_signal(int signum, sighandler_t handler); |
120 | #define signal(s, h) winansi_signal(s, h) | 119 | #define signal(s, h) winansi_signal(s, h) |
@@ -243,11 +242,8 @@ int mingw_getaddrinfo(const char *node, const char *service, | |||
243 | const struct addrinfo *hints, struct addrinfo **res); | 242 | const struct addrinfo *hints, struct addrinfo **res); |
244 | struct hostent *mingw_gethostbyaddr(const void *addr, socklen_t len, int type); | 243 | struct hostent *mingw_gethostbyaddr(const void *addr, socklen_t len, int type); |
245 | 244 | ||
246 | 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); | ||
247 | |||
248 | #define socket mingw_socket | 245 | #define socket mingw_socket |
249 | #define connect mingw_connect | 246 | #define connect mingw_connect |
250 | #define sendto mingw_sendto | ||
251 | #define listen mingw_listen | 247 | #define listen mingw_listen |
252 | #define bind mingw_bind | 248 | #define bind mingw_bind |
253 | #define setsockopt mingw_setsockopt | 249 | #define setsockopt mingw_setsockopt |