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 */
Thanks, applied. Also removed check for tcgetpgrp() since that was the only place it was used.
Mass change of RESOLVED bugs to CLOSED