about summary refs log tree commit diff stats
path: root/src/include/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/os.h')
-rw-r--r--src/include/os.h17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/include/os.h b/src/include/os.h
index d68a518b..f6e7371d 100644
--- a/src/include/os.h
+++ b/src/include/os.h
@@ -10,6 +10,8 @@
 #else
 typedef __int64 ssize_t;
 
+#define dlsym(a, b) NULL
+
 #define PROT_READ  0x1
 #define PROT_WRITE 0x2
 #define PROT_EXEC  0x4
@@ -58,21 +60,6 @@ void PersonalityAddrLimit32Bit(void);
 #define SigSetJmp(a, b) 0
 #endif
 
-#ifndef USE_CUSTOM_MUTEX
-#define mutex_lock(A)    pthread_mutex_lock(A)
-#define mutex_trylock(A) pthread_mutex_trylock(A)
-#define mutex_unlock(A)  pthread_mutex_unlock(A)
-#else
-#define mutex_lock(A)                             \
-    do {                                          \
-        uint32_t tid = (uint32_t)GetTID();        \
-        while (native_lock_storeifnull_d(A, tid)) \
-            sched_yield();                        \
-    } while (0)
-#define mutex_trylock(A) native_lock_storeifnull_d(A, (uint32_t)GetTID())
-#define mutex_unlock(A)  native_lock_storeifref_d(A, 0, (uint32_t)GetTID())
-#endif
-
 #ifndef _WIN32
 #include <setjmp.h>
 #define NEW_JUMPBUFF(name) \