On Linux/glibc systems, I get this warning: test-pty.c:24: warning: initialization from incompatible pointer type test-pty.c:26: warning: initialization from incompatible pointer type
It's because glibc defines both forkpty and openpty with 'const' in the last two parameters. And also: test-gettimeofday.c:23: warning: initialization from incompatible pointer type It's because with _GNU_SOURCE, glibc declares the second argument of gettimeofday as a 'struct timezone *'. Bruno