summaryrefslogtreecommitdiff
path: root/databases/arangodb33/files/patch-lib_Basics_process-utils.cpp
blob: 052bc9d3ee6882347c5552ca6f87cc648fa9a0f7 (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
32
33
34
35
36
--- lib/Basics/process-utils.cpp.orig	2018-01-05 13:56:52 UTC
+++ lib/Basics/process-utils.cpp
@@ -23,7 +23,7 @@
 
 #include "process-utils.h"
 
-#if defined(TRI_HAVE_MACOS_MEM_STATS)
+#if defined(TRI_HAVE_MACOS_MEM_STATS) || defined(__FreeBSD__)
 #include <sys/types.h>
 #include <sys/sysctl.h>
 #endif
@@ -557,6 +557,7 @@ ProcessInfo TRI_ProcessInfoSelf() {
 }
 
 #else
+#ifdef _WIN32
 /// --------------------------------------------
 /// transform a file time to timestamp
 /// Particularities:
@@ -648,6 +649,7 @@ ProcessInfo TRI_ProcessInfoSelf() {
   return result;
 }
 #endif
+#endif
 
 ////////////////////////////////////////////////////////////////////////////////
 /// @brief returns information about the process
@@ -1435,7 +1437,7 @@ bool TRI_ContinueExternalProcess(Externa
 /// @brief gets the physical memory
 ////////////////////////////////////////////////////////////////////////////////
 
-#if defined(TRI_HAVE_MACOS_MEM_STATS)
+#if defined(TRI_HAVE_MACOS_MEM_STATS) || defined(__FreeBSD__)
 
 static uint64_t GetPhysicalMemory() {
   int mib[2];