[Bug 477] New: progressmeter.c problem requires openbsd-compat/bsd-cray.h change

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Jan 28 06:06:48 EST 2003


http://bugzilla.mindrot.org/show_bug.cgi?id=477

           Summary: progressmeter.c problem requires openbsd-compat/bsd-
                    cray.h change
           Product: Portable OpenSSH
           Version: 3.5p1
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build system
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: wendyp at cray.com


when foregroundproc() got put into progressmeter.c, the return line got
changed from
#ifdef HAVE_TCGETPGRP
        return ((ctty_pgrp = tcgetpgrp(STDOUT_FILENO)) != -1 &&
                ctty_pgrp == pgrp);
#else
        return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 &&
                 ctty_pgrp == pgrp));
#endif


to

        return ((ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 &&
                 ctty_pgrp == pgrp));


and the crays stopped being able to compile because TIOCGPGRP isn't
set on them.

i'm not sure why the #ifdef HAVE_TCGETPGRP got deleted, but if that part
is not going to be used, i need the following patch added to
openbsd-compat/bsd-cray.h

diff -c openbsd-compat/bsd-cray.h.orig openbsd-compat/bsd-cray.h
*** openbsd-compat/bsd-cray.h.orig      Mon Jan 27 11:42:17 2003
--- openbsd-compat/bsd-cray.h   Mon Jan 27 11:52:07 2003
***************
*** 49,54 ****
--- 49,56 ----
  #ifndef MAXHOSTNAMELEN
  #define MAXHOSTNAMELEN  64
  #endif
+ #include <sys/ttold.h>
+ #define TIOCGPGRP (tIOC|20)
  #endif

  #endif /* _BSD_CRAY_H */



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-unix-dev mailing list