diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2013-09-26 14:44:05 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-09-26 14:44:05 +0200 |
commit | 5ae441d42ae9d1b33793a3ca19a7c929344337f7 (patch) | |
tree | 74fde0e28f77fc9627149148231391b311961bfe /package/openafs/patches/patch-src_lwp_waitkey_c | |
parent | d871140e95bd81cf9ee4998d7199cff292241681 (diff) | |
parent | d0cedd6214f7c35b73a22464c8688dbf9eb79f62 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/openafs/patches/patch-src_lwp_waitkey_c')
-rw-r--r-- | package/openafs/patches/patch-src_lwp_waitkey_c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/package/openafs/patches/patch-src_lwp_waitkey_c b/package/openafs/patches/patch-src_lwp_waitkey_c new file mode 100644 index 000000000..4cdc004a8 --- /dev/null +++ b/package/openafs/patches/patch-src_lwp_waitkey_c @@ -0,0 +1,37 @@ +--- openafs-1.6.5.orig/src/lwp/waitkey.c 2013-07-18 00:10:42.000000000 +0200 ++++ openafs-1.6.5/src/lwp/waitkey.c 2013-09-10 20:04:09.315133972 +0200 +@@ -158,34 +158,6 @@ LWP_WaitForKeystroke(int seconds) + struct timeval twait; + struct timeval *tp = NULL; + +-#ifdef AFS_LINUX20_ENV +- if (stdin->_IO_read_ptr < stdin->_IO_read_end) +- return 1; +-#else +-#if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV) +-#if defined(AFS_DFBSD_ENV) +- struct appx_sbuf { +- unsigned char *_base; +- int _size; +- }; +- struct APPX_FILE +- { +- struct __FILE_public pub; +- struct appx_sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */ +- }; +- struct APPX_FILE *appx_stdin = (struct APPX_FILE *) stdin; +- if (appx_stdin->_bf._size > 0) +- return 1; +-#else +- if (stdin->_bf._size > 0) +- return 1; +-#endif +-#else +- if (stdin->_cnt > 0) +- return 1; +-#endif +-#endif +- + FD_ZERO(&rdfds); + FD_SET(fileno(stdin), &rdfds); + |