Make this test compile again and remove its dependency on sys/pipe.h.

This commit is contained in:
Mike Silbersack 2004-07-21 03:13:53 +00:00
parent a0c03350a3
commit d895e295d0

View File

@ -3,10 +3,11 @@
#include <unistd.h>
#include <stdlib.h>
#include <sys/select.h>
#include <sys/pipe.h>
#include <string.h>
#include <errno.h>
#define BIG_PIPE_SIZE 64*1024 /* From sys/pipe.h */
/*
* Test for the non-blocking big pipe bug (write(2) returning
* EAGAIN while select(2) returns the descriptor as ready for write).