patch-src_lwp_waitkey_c 970 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --- openafs-1.6.5.orig/src/lwp/waitkey.c 2013-07-18 00:10:42.000000000 +0200
  2. +++ openafs-1.6.5/src/lwp/waitkey.c 2013-09-10 20:04:09.315133972 +0200
  3. @@ -158,34 +158,6 @@ LWP_WaitForKeystroke(int seconds)
  4. struct timeval twait;
  5. struct timeval *tp = NULL;
  6. -#ifdef AFS_LINUX20_ENV
  7. - if (stdin->_IO_read_ptr < stdin->_IO_read_end)
  8. - return 1;
  9. -#else
  10. -#if defined(AFS_DARWIN_ENV) || defined(AFS_XBSD_ENV)
  11. -#if defined(AFS_DFBSD_ENV)
  12. - struct appx_sbuf {
  13. - unsigned char *_base;
  14. - int _size;
  15. - };
  16. - struct APPX_FILE
  17. - {
  18. - struct __FILE_public pub;
  19. - struct appx_sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */
  20. - };
  21. - struct APPX_FILE *appx_stdin = (struct APPX_FILE *) stdin;
  22. - if (appx_stdin->_bf._size > 0)
  23. - return 1;
  24. -#else
  25. - if (stdin->_bf._size > 0)
  26. - return 1;
  27. -#endif
  28. -#else
  29. - if (stdin->_cnt > 0)
  30. - return 1;
  31. -#endif
  32. -#endif
  33. -
  34. FD_ZERO(&rdfds);
  35. FD_SET(fileno(stdin), &rdfds);