Sorry. I didn't point out that my last patch fixed an omission within stub.c.
As of release 1.5b12: gcc -c -O -Wall -DPOLL_EMULATION -DNEED_SOCKLEN_T -DHAVE_VFORK stub.c -o stub.o stub.c:47:18: poll.h: No such file or directory stub.c: In function `pipe_run': stub.c:605: error: invalid use of undefined type `struct pollfd' stub.c:605: error: dereferencing pointer to incomplete type stub.c:606: error: invalid use of undefined type `struct pollfd' stub.c:606: error: dereferencing pointer to incomplete type stub.c:607: error: `POLLERR' undeclared (first use in this function) stub.c:607: error: (Each undeclared identifier is reported only once stub.c:607: error: for each function it appears in.) stub.c:617: error: `POLLIN' undeclared (first use in this function) stub.c:617: error: `POLLOUT' undeclared (first use in this function) stub.c: In function `setup_child_pollfds': stub.c:712: error: `POLLIN' undeclared (first use in this function) stub.c:714: error: `POLLOUT' undeclared (first use in this function) stub.c:716: error: invalid use of undefined type `struct pollfd' stub.c:716: error: dereferencing pointer to incomplete type stub.c:717: error: invalid use of undefined type `struct pollfd' stub.c:717: error: dereferencing pointer to incomplete type stub.c:727: error: invalid use of undefined type `struct pollfd' stub.c:727: error: dereferencing pointer to incomplete type stub.c:728: error: invalid use of undefined type `struct pollfd' stub.c:728: error: dereferencing pointer to incomplete type So you need this patch: --- stub.c~ Wed Nov 26 14:09:27 2003 +++ stub.c Fri Nov 28 20:17:05 2003 @@ -44,7 +44,11 @@ #include <arpa/inet.h> #include <errno.h> #include <fcntl.h> +#ifndef POLL_EMULATION #include <poll.h> +#else +#include "poll-emul.h" +#endif #include <unistd.h> #include <limits.h> #include <stdio.h>
