summaryrefslogtreecommitdiff
path: root/databases/py-psycopg/patches/patch-ab
blob: 26f786ad920e2a26765e94a2b57189572ecb5572 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ab,v 1.1.1.1 2002/10/25 14:17:24 drochner Exp $

--- module.h.orig	Fri Oct 25 15:47:23 2002
+++ module.h	Fri Oct 25 15:55:15 2002
@@ -31,7 +31,12 @@
 #include <libpq-fe.h>
 #include <time.h>
 #ifndef _WIN32
-#include <pthread.h>
+#include <pth.h>
+#define pthread_mutex_t pth_mutex_t
+#define pthread_mutex_init(m, a) pth_mutex_init(m)
+#define pthread_mutex_lock(m) pth_mutex_acquire(m, FALSE, NULL)
+#define pthread_mutex_unlock(m) pth_mutex_release(m)
+#define pthread_mutex_destroy(m) /* nothing */
 #else
 #include <windows.h>
 #define pthread_mutex_t HANDLE