aboutsummaryrefslogtreecommitdiff
path: root/libbb/signals.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2021-02-06 09:52:11 +0000
committerRon Yorston <rmy@pobox.com>2021-02-06 09:52:11 +0000
commit70ca88d03a7aa92720744832fd9d131a183e00be (patch)
tree937e9e211ba75875b9a5f0f5a444b45839a85783 /libbb/signals.c
parent32e19e7ae8b0d76d69871ba234e8f0af31baff4e (diff)
downloadbusybox-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/signals.c')
-rw-r--r--libbb/signals.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libbb/signals.c b/libbb/signals.c
index d3d84ef6a..e64ba5023 100644
--- a/libbb/signals.c
+++ b/libbb/signals.c
@@ -18,6 +18,7 @@ void record_signo(int signo)
18 bb_got_signal = signo; 18 bb_got_signal = signo;
19} 19}
20 20
21#if !ENABLE_PLATFORM_MINGW32
21/* Saves 2 bytes on x86! Oh my... */ 22/* Saves 2 bytes on x86! Oh my... */
22int FAST_FUNC sigaction_set(int signum, const struct sigaction *act) 23int FAST_FUNC sigaction_set(int signum, const struct sigaction *act)
23{ 24{
@@ -40,6 +41,7 @@ int FAST_FUNC sigprocmask2(int how, sigset_t *set)
40 oset = set; 41 oset = set;
41 return sigprocmask(how, set, oset); 42 return sigprocmask(how, set, oset);
42} 43}
44#endif
43 45
44void FAST_FUNC bb_signals(int sigs, void (*f)(int)) 46void FAST_FUNC bb_signals(int sigs, void (*f)(int))
45{ 47{