mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
make it compile on solaris
svn:r142
This commit is contained in:
parent
1e128e2d05
commit
bc9b24876b
@ -35,7 +35,6 @@
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
1
select.c
1
select.c
@ -44,7 +44,6 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <err.h>
|
||||
|
||||
#include "event.h"
|
||||
#include "event-internal.h"
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user