make it compile on solaris

svn:r142
This commit is contained in:
Niels Provos 2005-04-04 00:10:17 +00:00
parent 1e128e2d05
commit bc9b24876b
3 changed files with 2 additions and 5 deletions

View File

@ -35,7 +35,6 @@
#include <sys/time.h>
#endif
#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>

View File

@ -44,7 +44,6 @@
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <err.h>
#include "event.h"
#include "event-internal.h"

View File

@ -49,7 +49,6 @@
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <err.h>
#include <event.h>
@ -245,10 +244,10 @@ setup_test(char *name)
#ifdef HAVE_FCNTL
if (fcntl(pair[0], F_SETFL, O_NONBLOCK) == -1)
warn("fcntl(O_NONBLOCK)");
fprintf(stderr, "fcntl(O_NONBLOCK)");
if (fcntl(pair[1], F_SETFL, O_NONBLOCK) == -1)
warn("fcntl(O_NONBLOCK)");
fprintf(stderr, "fcntl(O_NONBLOCK)");
#endif
test_ok = 0;