Fixes for FreeBSD.
This commit is contained in:
parent
165c889c5d
commit
975d888d65
|
@ -16,9 +16,6 @@
|
||||||
#include "CArch.h"
|
#include "CArch.h"
|
||||||
#include "CArchMultithreadPosix.h"
|
#include "CArchMultithreadPosix.h"
|
||||||
#include "XArchUnix.h"
|
#include "XArchUnix.h"
|
||||||
#if HAVE_SYS_TYPES_H
|
|
||||||
# include <sys/types.h>
|
|
||||||
#endif
|
|
||||||
#if HAVE_UNISTD_H
|
#if HAVE_UNISTD_H
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
#include "IArchNetwork.h"
|
#include "IArchNetwork.h"
|
||||||
#include "IArchMultithread.h"
|
#include "IArchMultithread.h"
|
||||||
|
#if HAVE_SYS_TYPES_H
|
||||||
|
# include <sys/types.h>
|
||||||
|
#endif
|
||||||
#if HAVE_SYS_SOCKET_H
|
#if HAVE_SYS_SOCKET_H
|
||||||
# include <sys/socket.h>
|
# include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -67,6 +67,12 @@
|
||||||
#define __FP__
|
#define __FP__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Need this on FreeBSD to get nanosleep. We can't define this on, say,
|
||||||
|
// Linux because that unconditionally defines it.
|
||||||
|
#if defined(__FreeBSD__)
|
||||||
|
#define _POSIX_VERSION 199506L
|
||||||
|
#endif
|
||||||
|
|
||||||
// define NULL
|
// define NULL
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
#define NULL 0
|
#define NULL 0
|
||||||
|
|
Loading…
Reference in New Issue