Package: gem / 1:0.93.3-7

fix_kFreeBSD.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Author: IOhannes m zmoelnig
Description: include needed files for select() on kFreeBSD
Forwarded: http://pd-gem.git.sourceforge.net/git/gitweb.cgi?p=pd-gem/Gem;a=commit;h=b41709bafa221c02ddd0e278c9156f443078fdc5
Last-Update: 2012-06-11
--- gem.orig/src/Gem/WorkerThread.cpp
+++ gem/src/Gem/WorkerThread.cpp
@@ -31,7 +31,8 @@
 #include "ThreadSemaphore.h"
 
 #include <pthread.h>
-#if defined __linux__ || defined __APPLE__
+#if defined __linux__ || defined __APPLE__ || defined __FreeBSD_kernel__
+# include <sys/types.h>
 # include <unistd.h>
 # include <sys/time.h>
 #endif
--- gem.orig/src/Gem/Dylib.cpp
+++ gem/src/Gem/Dylib.cpp
@@ -25,7 +25,7 @@
 #include <string>
 #include <stdio.h>
 
-#if defined __linux__ || defined __APPLE__
+#if defined __linux__ || defined __APPLE__ || defined __FreeBSD_kernel__
 #include <unistd.h>
 # define DL_OPEN
 #endif