[79] in Pthreads mailing list archive
1.60.beta3 on hpux9
daemon@ATHENA.MIT.EDU (Neal Becker)
Wed Aug 16 09:47:42 1995
Date: Wed, 16 Aug 95 09:12:37 -0400 (EDT)
From: neal@ctd.comsat.com (Neal Becker)
To: proven@MIT.EDU, pthreads@MIT.EDU
OK, I've gotten a bit farther. After adding this in CFLAGS:
-D_POSIX_SOURCE -D_ANSI_SOURCE
And patching a few files,
Now I get as far as:
------------------
gcc -I. -Iinclude -I/src/pthreads/include -DPTHREAD_KERNEL -D_POSIX_SOURCE -D_ANSI_SOURCE -g -O -c /src/pthreads/gen/isatty.c -o obj/isatty.o
/src/pthreads/gen/isatty.c: In function `isatty_basic':
/src/pthreads/gen/isatty.c:80: `TCGETA' undeclared (first use this function)
/src/pthreads/gen/isatty.c:80: (Each undeclared identifier is reported only once
/src/pthreads/gen/isatty.c:80: for each function it appears in.)
------------------
Yuck! It seems that isatty.c includes termios.h. But then it wants
the old, non-POSIX TCGETA! Mixing these won't work on hpux9. In
fact, both termio and termios are wrappers, that switch the behaviour,
so that including termios will cause all the old termio stuff to not
be seen.
Can we convert to using POSIX termios exclusively? That would be the
easiest (and most portable) solution.