diff options
author | Ron Yorston <rmy@pobox.com> | 2021-02-13 10:54:34 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-02-13 10:54:34 +0000 |
commit | 3e460d91bd365b58860112fa1b517604f19ebbdf (patch) | |
tree | fd08aac2e17f9c586d579592c1e1d760380146b8 /miscutils | |
parent | 8489ebce32f4b6cf5c1c1120fd474e26f7659db7 (diff) | |
download | busybox-w32-3e460d91bd365b58860112fa1b517604f19ebbdf.tar.gz busybox-w32-3e460d91bd365b58860112fa1b517604f19ebbdf.tar.bz2 busybox-w32-3e460d91bd365b58860112fa1b517604f19ebbdf.zip |
bc: fix to build on WIN32 and enable in default configurations
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/bc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index 02a61ac49..046bad98e 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -7424,7 +7424,9 @@ static int xc_vm_init(const char *env_len) | |||
7424 | // from stdin is not interrupted by ^C either, | 7424 | // from stdin is not interrupted by ^C either, |
7425 | // it restarts, thus fgetc() does not return on ^C. | 7425 | // it restarts, thus fgetc() does not return on ^C. |
7426 | // (This problem manifests only if line editing is disabled) | 7426 | // (This problem manifests only if line editing is disabled) |
7427 | # if !ENABLE_PLATFORM_MINGW32 | ||
7427 | signal_SA_RESTART_empty_mask(SIGINT, record_signo); | 7428 | signal_SA_RESTART_empty_mask(SIGINT, record_signo); |
7429 | # endif | ||
7428 | 7430 | ||
7429 | // Without SA_RESTART, this exhibits a bug: | 7431 | // Without SA_RESTART, this exhibits a bug: |
7430 | // "while (1) print 1" and try ^C-ing it. | 7432 | // "while (1) print 1" and try ^C-ing it. |