Fix compilation on OpenBSD (ticket #252). Patch by eumel

SVN revision: 39625
This commit is contained in:
Vincent Torri 2009-03-22 13:30:52 +00:00
parent 98fb9f9826
commit 36bbb31389
3 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@
# include <config.h>
#endif
#ifdef __FreeBSD__
#if defined (__FreeBSD__) || defined (__OpenBSD__)
#include <sys/time.h>
#include <sys/resource.h>
#endif

View File

@ -34,6 +34,9 @@
#include <string.h>
#include <ctype.h>
#ifdef __OpenBSD__
# include <sys/types.h>
#endif
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>

View File

@ -15,6 +15,9 @@
#include <string.h>
#include <ctype.h>
#ifdef __OpenBSD__
# include <sys/types.h>
#endif
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>