FreeBSD support and clean up of unnecessary ifdef FREEBSD

This commit is contained in:
Michael Cook
2013-05-11 14:32:14 -04:00
parent 9ea71dd94f
commit 73a4e87379
11 changed files with 33 additions and 12 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ Mutex::Mutex() {
#else
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
#if defined(__CYGWIN__) || defined(__APPLE__)
#if defined(__CYGWIN__) || defined(__APPLE__) || defined(FREEBSD)
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
#else
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+3
View File
@@ -29,6 +29,9 @@
#include <stdio.h>
#endif
#include "eqemu_exception.h"
#ifdef FREEBSD
#include <sys/stat.h>
#endif
namespace EQEmu {