Finally add spike's FreeBSD suggestions. Tnxto Chris for forwarding.
authorHans Lambermont <hans@lambermont.dyndns.org>
Sun, 5 Oct 2003 19:37:16 +0000 (19:37 +0000)
committerHans Lambermont <hans@lambermont.dyndns.org>
Sun, 5 Oct 2003 19:37:16 +0000 (19:37 +0000)
intern/SoundSystem/intern/SND_WaveCache.cpp
source/creator/creator.c

index 0e4a26037890f81ccc3282e3383c93777ac936b6..e9868f77f57b73df887358c2f69a7d433a00ef0d 100644 (file)
 #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()
 {
index 79a20741925a17304d44dc75937800e6e02d77ae..f62fd394eacab7b92c5b1d45f76955d6306446c4 100644 (file)
 #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