ports/benchmarks/clpeak/files/patch-src_include_common.h
Mathieu Arnold 56bf85096c Cleanup patches, category benchmarks
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-27 15:09:11 +00:00

31 lines
606 B
C++

--- src/include/common.h.orig 2015-11-04 06:03:41 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