diff options
author | 2016-09-23 09:21:58 +0000 | |
---|---|---|
committer | 2016-09-23 09:21:58 +0000 | |
commit | 25e4f8ab5acd0ef40feec6767a572bebbbe294b3 (patch) | |
tree | 20197c0e46bb6d260f4a310b6d5dd73b8d826f01 /lib/libsqlite3/tsrc/pthread_stub.c | |
parent | remove usr.bin/sqlite3, it has moved back to ports (diff) | |
download | wireguard-openbsd-25e4f8ab5acd0ef40feec6767a572bebbbe294b3.tar.xz wireguard-openbsd-25e4f8ab5acd0ef40feec6767a572bebbbe294b3.zip |
remove lib/libsqlite3, it has moved back to ports
Diffstat (limited to 'lib/libsqlite3/tsrc/pthread_stub.c')
-rw-r--r-- | lib/libsqlite3/tsrc/pthread_stub.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/libsqlite3/tsrc/pthread_stub.c b/lib/libsqlite3/tsrc/pthread_stub.c deleted file mode 100644 index 2850374b60b..00000000000 --- a/lib/libsqlite3/tsrc/pthread_stub.c +++ /dev/null @@ -1,30 +0,0 @@ -/* stubs for pthreads function, quick and dirty */ -#if SQLITE_THREADSAFE && !defined(SQLITE_TEST) - -#include <pthread.h> - -#define WEAKALIAS(f,g ) extern f __attribute__((__weak__, __alias__(#g))) - -static pthread_t _sqlite_self_stub() -{ - return 0; -} - -static int _sqlite_zero_stub() -{ - return 0; -} - -WEAKALIAS(pthread_t pthread_self(void), _sqlite_self_stub); -WEAKALIAS(int pthread_join(pthread_t, void **), _sqlite_zero_stub); -WEAKALIAS(int pthread_create(pthread_t *, const pthread_attr_t *, void *(*) (void *), void *), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutex_init(pthread_mutex_t *a, const pthread_mutexattr_t *b), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutex_destroy(pthread_mutex_t *a), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutex_lock(pthread_mutex_t *a), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutex_trylock(pthread_mutex_t *a), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutex_unlock(pthread_mutex_t *a), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutexattr_init(pthread_mutexattr_t *a), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutexattr_settype(pthread_mutexattr_t *a, int b), _sqlite_zero_stub); -WEAKALIAS(int pthread_mutexattr_destroy(pthread_mutexattr_t *a), _sqlite_zero_stub); - -#endif |