diff --git a/neo/idlib/ParallelJobList_JobHeaders.h b/neo/idlib/ParallelJobList_JobHeaders.h index 5db9e449..6b2b67a9 100644 --- a/neo/idlib/ParallelJobList_JobHeaders.h +++ b/neo/idlib/ParallelJobList_JobHeaders.h @@ -60,8 +60,12 @@ If you have questions concerning this license or the applicable additional terms #elif defined(__linux__) #include // DG: _alloca16 needs that #include -#endif // RB end +// Yamagi begin +#elif defined(__FreeBSD__) +#include +#endif +// Yamagi end #ifdef _MSC_VER #include diff --git a/neo/idlib/sys/sys_defines.h b/neo/idlib/sys/sys_defines.h index dd58bf4b..8dc8143d 100644 --- a/neo/idlib/sys/sys_defines.h +++ b/neo/idlib/sys/sys_defines.h @@ -103,7 +103,7 @@ If you have questions concerning this license or the applicable additional terms #endif -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) #if defined(__i386__) #define CPUSTRING "x86" @@ -111,8 +111,13 @@ If you have questions concerning this license or the applicable additional terms #define CPUSTRING "x86_86" #endif +#ifdef __FreeBSD__ +#define BUILD_STRING "freebsd-" CPUSTRING +#define BUILD_OS_ID 3 +#else #define BUILD_STRING "linux-" CPUSTRING #define BUILD_OS_ID 2 +#endif #define _alloca alloca diff --git a/neo/idlib/sys/sys_includes.h b/neo/idlib/sys/sys_includes.h index 2cd9d5d1..3e9485d7 100644 --- a/neo/idlib/sys/sys_includes.h +++ b/neo/idlib/sys/sys_includes.h @@ -109,7 +109,7 @@ If you have questions concerning this license or the applicable additional terms #include // for qgl.h -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) #include #include