summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/gnome-vfs/patches/patch-ab28
1 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/gnome-vfs/patches/patch-ab b/sysutils/gnome-vfs/patches/patch-ab
new file mode 100644
index 00000000000..476c9af14e6
--- /dev/null
+++ b/sysutils/gnome-vfs/patches/patch-ab
@@ -0,0 +1,28 @@
+$NetBSD: patch-ab,v 1.3 2001/04/07 19:00:21 rh Exp $
+
+--- libgnomevfs-pthread/gnome-vfs-job.h.orig Thu Apr 5 17:03:26 2001
++++ libgnomevfs-pthread/gnome-vfs-job.h
+@@ -28,7 +28,11 @@
+
+ #include "gnome-vfs.h"
+ #include "gnome-vfs-private.h"
++#ifdef HAVE_SEMAPHORE_H
+ #include <semaphore.h>
++#else
++#include <pthread.h>
++#endif
+
+ typedef struct GnomeVFSJob GnomeVFSJob;
+
+@@ -327,7 +331,11 @@
+ gboolean failed;
+
+ /* Global lock for accessing data. */
++#ifdef HAVE_SEMAPHORE_H
+ sem_t access_lock;
++#else
++ pthread_mutex_t access_lock;
++#endif
+
+ /* This condition is signalled when the master thread gets a
+ notification and wants to acknowledge it. */