--- a/port/port_posix.cc
+++ b/port/port_posix.cc
@@ -32,7 +32,7 @@ static int PthreadCall(const char* label, int result) {
 }

 Mutex::Mutex(bool adaptive) {
-#ifdef OS_LINUX
+#if 0
   if (!adaptive) {
     PthreadCall("init mutex", pthread_mutex_init(&mu_, nullptr));
   } else {
--- a/port/stack_trace.cc
+++ b/port/stack_trace.cc
@@ -5,8 +5,7 @@
 //
 #include "port/stack_trace.h"

-#if defined(ROCKSDB_LITE) || !(defined(OS_LINUX) || defined(OS_MACOSX)) || \
-    defined(CYGWIN)
+#if 1

 // noop

