patch-src_sattrack_sattrack_c 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. $OpenBSD: patch-src_sattrack_sattrack_c,v 1.1 2007/12/18 09:08:24 ajacoutot Exp $
  2. --- src/sattrack/sattrack.c.orig Tue Jan 14 06:06:10 1997
  3. +++ src/sattrack/sattrack.c Tue Dec 18 09:53:05 2007
  4. @@ -2081,12 +2081,12 @@ int entryFlag;
  5. memcpy((char *)&modified,(char *)&original,sizeof(struct termios));
  6. #endif
  7. -#ifdef FREEBSD
  8. +#if defined(FREEBSD) || defined(__OpenBSD__)
  9. ioctl(STDIN_FILENO,TIOCGETA,&original);
  10. memcpy((char *)&modified,(char *)&original,sizeof(struct termios));
  11. #endif
  12. -#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD))
  13. +#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD)) && !defined(__OpenBSD__)
  14. ioctl(STDIN_FILENO,TCGETS,&original);
  15. memcpy((char *)&modified,(char *)&original,sizeof(struct termios));
  16. #endif
  17. @@ -2114,11 +2114,11 @@ int entryFlag;
  18. ioctl(STDIN_FILENO,XCSETA,&modified);
  19. #endif
  20. -#ifdef FREEBSD
  21. +#if defined(FREEBSD) || defined(__OpenBSD__)
  22. ioctl(STDIN_FILENO,TIOCSETA,&modified);
  23. #endif
  24. -#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD))
  25. +#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD)) && !defined(__OpenBSD__)
  26. ioctl(STDIN_FILENO,TCSETS,&modified);
  27. #endif
  28. @@ -2138,11 +2138,11 @@ int entryFlag;
  29. ioctl(STDIN_FILENO,XCSETA,&original);
  30. #endif
  31. -#ifdef FREEBSD
  32. +#if defined(FREEBSD) || defined(__OpenBSD__)
  33. ioctl(STDIN_FILENO,TIOCSETA,&original);
  34. #endif
  35. -#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD))
  36. +#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD)) && !defined(__OpenBSD__)
  37. ioctl(STDIN_FILENO,TCSETS,&original);
  38. #endif