Modified checks for defined __FreeBSD__ to also include defined (__OpenBSD__)

From: http://www.blender.org/modules.php?op=modload&name=phpBB2&file=viewtopic&t=840

Kent
This commit is contained in:
2003-01-30 18:51:05 +00:00
parent 96cb7d1629
commit 9475bf9e29
4 changed files with 4 additions and 10 deletions

View File

@@ -60,7 +60,7 @@
#include <sys/statfs.h>
#endif
#ifdef __FreeBSD__
#ifdef defined (__FreeBSD__) || defined (__OpenBSD__)
#include <sys/param.h>
#include <sys/mount.h>
#endif
@@ -194,7 +194,7 @@ double BLI_diskfree(char *dir)
if (slash) slash[1] = 0;
} else strcpy(name,"/");
#if defined __FreeBSD__ || defined linux
#if defined (__FreeBSD__) || defined (linux) || defined (__OpenBSD__)
if (statfs(name, &disk)) return(-1);
#endif
#ifdef __BeOS

View File

@@ -72,7 +72,7 @@ MODNAME(BLENDERMODULE) -> "_Blender"
// module configuration -- TODO: this should be set later from the Makefile...
/* commented out by mein@cs.umn.edu default is non static now :)
#if defined(__FreeBSD__) || defined(__linux__) || defined (__sgi) || defined(__sparc) || defined(__sparc__)
#if defined(__FreeBSD__) || defined(__linux__) || defined (__sgi) || defined(__sparc) || defined(__sparc__) || defined (__OpenBSD__)
#define STATIC_TEXTTOOLS 1
#endif
*/

View File

@@ -50,12 +50,6 @@
#include <string.h>
#include <math.h>
#if !defined(__FreeBSD__) && !defined(__APPLE__)
/* #include <malloc.h> */ /* _should_ be in stdlib */
#endif
#ifndef WIN32
#include <sys/mman.h>
#endif

View File

@@ -81,7 +81,7 @@ typedef unsigned __int64 uint64_t;
#ifdef _WIN32
#define htonl(x) correctByteOrder(x)
#define ntohl(x) correctByteOrder(x)
#elif defined __FreeBSD__
#elif defined (__FreeBSD__) || defined (__OpenBSD__)
#include <sys/param.h>
#elif defined (__APPLE__)
#include <sys/types.h>