aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/clpeak/files/patch-src_include_common.h
blob: a82d8d3f4fe5a52e64724656e33d86e7a63ee27c (plain) (blame)
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
28
29
30
31
--- src/include/common.h.orig	2016-05-28 05:15:40 UTC
+++ src/include/common.h
@@ -8,13 +8,19 @@
     #include <CL/cl.hpp>
 #endif
 
+#ifdef __FreeBSD__
+    #include <sys/types.h>
+#endif
+
 #include <stdlib.h>
 #include <chrono>
 #include <string>
 
 #define TAB             "  "
 #define NEWLINE         "\n"
+#ifndef __FreeBSD__
 #define uint            unsigned int
+#endif
 
 #define MAX(X, Y)       \
     (X > Y)? X: Y;
@@ -41,6 +47,8 @@
     #elif defined(__arm__)
         #define OS_NAME     "Linux ARM"
     #endif
+#elif defined(__FreeBSD__)
+    #define OS_NAME         "FreeBSD"
 #endif