diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-05 03:34:12 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-05 03:34:12 +0200 |
commit | 9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a (patch) | |
tree | 65a7b5ebb093903fd030aecda6ee204660d458d4 /libbb/bb_askpass.c | |
parent | b22bbfffec182997827b0a71eeb93ddafbde602c (diff) | |
download | busybox-w32-9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a.tar.gz busybox-w32-9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a.tar.bz2 busybox-w32-9b1b62adc4e4c1e80d9f72180c6b7b1eaef9f95a.zip |
Patches to enable FreeBSD build
platform.h: fix wrong check for endianness, fix lchown
aliasing to chown on uclibc.
Code seems to not be affected in my testing.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/bb_askpass.c')
-rw-r--r-- | libbb/bb_askpass.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c index c0dcf0c5f..073175c1f 100644 --- a/libbb/bb_askpass.c +++ b/libbb/bb_askpass.c | |||
@@ -37,6 +37,9 @@ char* FAST_FUNC bb_ask(const int fd, int timeout, const char *prompt) | |||
37 | tcgetattr(fd, &oldtio); | 37 | tcgetattr(fd, &oldtio); |
38 | tcflush(fd, TCIFLUSH); | 38 | tcflush(fd, TCIFLUSH); |
39 | tio = oldtio; | 39 | tio = oldtio; |
40 | #ifndef IUCLC | ||
41 | # define IUCLC 0 | ||
42 | #endif | ||
40 | tio.c_iflag &= ~(IUCLC|IXON|IXOFF|IXANY); | 43 | tio.c_iflag &= ~(IUCLC|IXON|IXOFF|IXANY); |
41 | tio.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|TOSTOP); | 44 | tio.c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|TOSTOP); |
42 | tcsetattr_stdin_TCSANOW(&tio); | 45 | tcsetattr_stdin_TCSANOW(&tio); |