Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--intern/SoundSystem/intern/SND_WaveCache.cpp15
-rw-r--r--source/creator/creator.c7
2 files changed, 12 insertions, 10 deletions
diff --git a/intern/SoundSystem/intern/SND_WaveCache.cpp b/intern/SoundSystem/intern/SND_WaveCache.cpp
index 0e4a2603789..e9868f77f57 100644
--- a/intern/SoundSystem/intern/SND_WaveCache.cpp
+++ b/intern/SoundSystem/intern/SND_WaveCache.cpp
@@ -45,12 +45,15 @@
#include "SND_WaveCache.h"
#include <stdio.h>
-#ifndef __APPLE__
-#include <malloc.h>
-#else // __APPLE__
-#include <sys/malloc.h>
-#endif // __APPLE__
-
+#ifdef __APPLE__
+# include <sys/malloc.h>
+#else
+# ifdef __FreeBSD__
+# include <stdlib.h>
+# else
+# include <malloc.h>
+# endif
+#endif
SND_WaveCache::SND_WaveCache()
{
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 79a20741925..f62fd394eac 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -90,10 +90,9 @@
#include <signal.h>
#ifdef __FreeBSD__
- #ifndef __OpenBSD__
- #include <floatingpoint.h>
- #include <sys/rtprio.h>
- #endif
+# include <sys/types.h>
+# include <floatingpoint.h>
+# include <sys/rtprio.h>
#endif
// from buildinfo.c