freebsd-ports/databases/foundationdb/files/patch-flow_Platform.h
Vanilla I. Shu 5f0593e970 1: Update to 6.1.1.
2: fix building with boost 1.70.
3: remove BROKEN.
2019-04-12 13:04:58 +00:00

20 lines
583 B
C

--- flow/Platform.h.orig 2019-04-09 00:11:05 UTC
+++ flow/Platform.h
@@ -22,7 +22,7 @@
#define FLOW_PLATFORM_H
#pragma once
-#if (defined(__linux__) || defined(__APPLE__))
+#if (defined(__linux__) || defined(__APPLE__)) || defined(__FreeBSD__)
#define __unixish__ 1
#endif
@@ -188,6 +188,8 @@ THREAD_HANDLE startThread(void *(func) (void *), void
#if defined(_WIN32)
#define DYNAMIC_LIB_EXT ".dll"
#elif defined(__linux)
+#define DYNAMIC_LIB_EXT ".so"
+#elif defined(__FreeBSD__)
#define DYNAMIC_LIB_EXT ".so"
#elif defined(__APPLE__)
#define DYNAMIC_LIB_EXT ".dylib"