summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorrh <rh>2001-04-07 19:00:21 +0000
committerrh <rh>2001-04-07 19:00:21 +0000
commit66f39a992f8b7adad721a629d929bd5e494cd0f3 (patch)
tree86b8201c2ed75cabaa3a14c30465a9a2046a7df2 /sysutils
parentf0f44ceedbc6162f58c87ede51fb809510857553 (diff)
downloadpkgsrc-66f39a992f8b7adad721a629d929bd5e494cd0f3.tar.gz
Make gnome-vfs-1.4 actually compile: this patch was missing from the
original commit.
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. */