diff options
author | Ron Yorston <rmy@pobox.com> | 2018-03-01 11:18:33 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-03-01 11:18:33 +0000 |
commit | 5f8dac68690e92f0be220f8f8d9f797a2aedc806 (patch) | |
tree | 28c1d611ace374f615cac23415b35b2ab54059f4 /networking | |
parent | 701a8d6783f09597e1c9b386b1e6ba890807854c (diff) | |
download | busybox-w32-5f8dac68690e92f0be220f8f8d9f797a2aedc806.tar.gz busybox-w32-5f8dac68690e92f0be220f8f8d9f797a2aedc806.tar.bz2 busybox-w32-5f8dac68690e92f0be220f8f8d9f797a2aedc806.zip |
Remove fake signal-handling code
Microsoft Windows has only limited support for signals. busybox-w32
initially papered over this fact by adding definitions for unsupported
signals and signal-handling functions.
Remove this fake code and deal with the consequences by excluding
anything that fails to compile as a result.
Diffstat (limited to 'networking')
-rw-r--r-- | networking/nc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/networking/nc.c b/networking/nc.c index de02ccc9d..3e122b787 100644 --- a/networking/nc.c +++ b/networking/nc.c | |||
@@ -110,10 +110,12 @@ | |||
110 | * when compared to "standard" nc | 110 | * when compared to "standard" nc |
111 | */ | 111 | */ |
112 | 112 | ||
113 | #if ENABLE_NC_EXTRA | ||
113 | static void timeout(int signum UNUSED_PARAM) | 114 | static void timeout(int signum UNUSED_PARAM) |
114 | { | 115 | { |
115 | bb_error_msg_and_die("timed out"); | 116 | bb_error_msg_and_die("timed out"); |
116 | } | 117 | } |
118 | #endif | ||
117 | 119 | ||
118 | int nc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 120 | int nc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
119 | int nc_main(int argc, char **argv) | 121 | int nc_main(int argc, char **argv) |
@@ -187,10 +189,12 @@ int nc_main(int argc, char **argv) | |||
187 | argv++; | 189 | argv++; |
188 | } | 190 | } |
189 | 191 | ||
192 | #if ENABLE_NC_EXTRA | ||
190 | if (wsecs) { | 193 | if (wsecs) { |
191 | signal(SIGALRM, timeout); | 194 | signal(SIGALRM, timeout); |
192 | alarm(wsecs); | 195 | alarm(wsecs); |
193 | } | 196 | } |
197 | #endif | ||
194 | 198 | ||
195 | if (!cfd) { | 199 | if (!cfd) { |
196 | if (do_listen) { | 200 | if (do_listen) { |