diff options
Diffstat (limited to 'databases/rocksdb/files/patch-port-stack_trace.cc')
-rw-r--r-- | databases/rocksdb/files/patch-port-stack_trace.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/databases/rocksdb/files/patch-port-stack_trace.cc b/databases/rocksdb/files/patch-port-stack_trace.cc index 3b83846c5101..38ed09cc340f 100644 --- a/databases/rocksdb/files/patch-port-stack_trace.cc +++ b/databases/rocksdb/files/patch-port-stack_trace.cc @@ -1,6 +1,15 @@ ---- port/stack_trace.cc.orig 2021-06-25 21:15:04 UTC +--- port/stack_trace.cc.orig 2023-02-19 21:44:55 UTC +++ port/stack_trace.cc -@@ -135,7 +135,7 @@ void PrintStack(int first_frames_to_skip) { +@@ -33,6 +33,8 @@ void* SaveStack(int* /*num_frames*/, int /*first_frame + + #ifdef OS_FREEBSD + #include <sys/sysctl.h> ++#include <sys/types.h> ++#include <sys/wait.h> + #endif // OS_FREEBSD + #ifdef OS_LINUX + #include <sys/prctl.h> +@@ -219,7 +221,7 @@ void PrintStack(int first_frames_to_skip) { void* frames[kMaxFrames]; auto num_frames = backtrace(frames, kMaxFrames); @@ -9,7 +18,7 @@ } void PrintAndFreeStack(void* callstack, int num_frames) { -@@ -148,7 +148,7 @@ void* SaveStack(int* num_frames, int first_frames_to_s +@@ -232,7 +234,7 @@ void* SaveStack(int* num_frames, int first_frames_to_s void* frames[kMaxFrames]; auto count = backtrace(frames, kMaxFrames); |