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 /libbb/xfuncs_printf.c | |
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 'libbb/xfuncs_printf.c')
-rw-r--r-- | libbb/xfuncs_printf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index d672e43e5..47dbdd1b6 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c | |||
@@ -499,6 +499,7 @@ void FAST_FUNC xlisten(int s, int backlog) | |||
499 | if (listen(s, backlog)) bb_simple_perror_msg_and_die("listen"); | 499 | if (listen(s, backlog)) bb_simple_perror_msg_and_die("listen"); |
500 | } | 500 | } |
501 | 501 | ||
502 | #if !ENABLE_PLATFORM_MINGW32 | ||
502 | /* Die with an error message if sendto failed. | 503 | /* Die with an error message if sendto failed. |
503 | * Return bytes sent otherwise */ | 504 | * Return bytes sent otherwise */ |
504 | ssize_t FAST_FUNC xsendto(int s, const void *buf, size_t len, const struct sockaddr *to, | 505 | ssize_t FAST_FUNC xsendto(int s, const void *buf, size_t len, const struct sockaddr *to, |
@@ -512,6 +513,7 @@ ssize_t FAST_FUNC xsendto(int s, const void *buf, size_t len, const struct socka | |||
512 | } | 513 | } |
513 | return ret; | 514 | return ret; |
514 | } | 515 | } |
516 | #endif | ||
515 | 517 | ||
516 | // xstat() - a stat() which dies on failure with meaningful error message | 518 | // xstat() - a stat() which dies on failure with meaningful error message |
517 | void FAST_FUNC xstat(const char *name, struct stat *stat_buf) | 519 | void FAST_FUNC xstat(const char *name, struct stat *stat_buf) |