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:
@@ -60,7 +60,7 @@
|
|||||||
#include <sys/statfs.h>
|
#include <sys/statfs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __FreeBSD__
|
#ifdef defined (__FreeBSD__) || defined (__OpenBSD__)
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -194,7 +194,7 @@ double BLI_diskfree(char *dir)
|
|||||||
if (slash) slash[1] = 0;
|
if (slash) slash[1] = 0;
|
||||||
} else strcpy(name,"/");
|
} else strcpy(name,"/");
|
||||||
|
|
||||||
#if defined __FreeBSD__ || defined linux
|
#if defined (__FreeBSD__) || defined (linux) || defined (__OpenBSD__)
|
||||||
if (statfs(name, &disk)) return(-1);
|
if (statfs(name, &disk)) return(-1);
|
||||||
#endif
|
#endif
|
||||||
#ifdef __BeOS
|
#ifdef __BeOS
|
||||||
|
@@ -72,7 +72,7 @@ MODNAME(BLENDERMODULE) -> "_Blender"
|
|||||||
|
|
||||||
// module configuration -- TODO: this should be set later from the Makefile...
|
// module configuration -- TODO: this should be set later from the Makefile...
|
||||||
/* commented out by mein@cs.umn.edu default is non static now :)
|
/* 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
|
#define STATIC_TEXTTOOLS 1
|
||||||
#endif
|
#endif
|
||||||
*/
|
*/
|
||||||
|
@@ -50,12 +50,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#if !defined(__FreeBSD__) && !defined(__APPLE__)
|
|
||||||
|
|
||||||
/* #include <malloc.h> */ /* _should_ be in stdlib */
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#endif
|
#endif
|
||||||
|
@@ -81,7 +81,7 @@ typedef unsigned __int64 uint64_t;
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define htonl(x) correctByteOrder(x)
|
#define htonl(x) correctByteOrder(x)
|
||||||
#define ntohl(x) correctByteOrder(x)
|
#define ntohl(x) correctByteOrder(x)
|
||||||
#elif defined __FreeBSD__
|
#elif defined (__FreeBSD__) || defined (__OpenBSD__)
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#elif defined (__APPLE__)
|
#elif defined (__APPLE__)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
Reference in New Issue
Block a user