unistd.h and sys/time.h might not exist.

This commit is contained in:
Peter Rosin 2011-05-25 10:58:48 +02:00 committed by Nick Mathewson
parent 70be7d17e4
commit fe93022a66
2 changed files with 8 additions and 0 deletions

View File

@ -37,7 +37,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef WIN32
#include <windows.h>
#else
@ -49,7 +51,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef _EVENT_HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <errno.h>
#include <event.h>

View File

@ -29,7 +29,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#ifdef _EVENT_HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef WIN32
#include <windows.h>
#else
@ -41,7 +43,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#ifdef _EVENT_HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <errno.h>
#include <event.h>