summaryrefslogtreecommitdiff
path: root/package/openafs/patches/patch-src_lwp_waitkey_c
blob: 4cdc004a8d78c57ae6cf13c59118b47d5c4d27b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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);