summaryrefslogtreecommitdiff
path: root/databases/foundationdb/files/patch-flow_Platform.h
blob: b831826ef2fec1c650b9c892c5793f21cd76520a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- flow/Platform.h.orig	2018-05-11 01:30:59 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
 
@@ -182,6 +182,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"