mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
31 lines
606 B
C++
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
|
|
|
|
|