002-m8cutils-remove-pp-timeout.patch 762 B

1234567891011121314151617181920212223242526272829303132
  1. PPSETTIME fails with EINVAL on PowerPC (at least).
  2. Let's remove it, as a temporary workaround.
  3. ---
  4. prog/pp.c | 4 +++-
  5. 1 file changed, 3 insertions(+), 1 deletion(-)
  6. --- m8cutils-22.orig/prog/pp.c
  7. +++ m8cutils-22/prog/pp.c
  8. @@ -75,7 +75,7 @@ static void set_input(int new_input)
  9. int pp_open(const char *path,int need_epp)
  10. {
  11. - struct timeval timeout = { .tv_sec = PP_TIMEOUT_S, .tv_usec = 0 };
  12. +/* struct timeval timeout = { .tv_sec = PP_TIMEOUT_S, .tv_usec = 0 };*/
  13. if (!path)
  14. path = DEFAULT_PARPORT;
  15. @@ -95,10 +95,12 @@ int pp_open(const char *path,int need_ep
  16. perror("ioctl(PPCLAIM)");
  17. exit(1);
  18. }
  19. +#if 0
  20. if (ioctl(fd,PPSETTIME,&timeout) < 0) {
  21. perror("ioctl(SETTIME)");
  22. exit(1);
  23. }
  24. +#endif
  25. return fd;
  26. }