summaryrefslogtreecommitdiff
path: root/filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c')
-rw-r--r--filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c b/filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c
new file mode 100644
index 00000000000..43e9c53b930
--- /dev/null
+++ b/filesystems/fuse-afpfs-ng/patches/patch-lib_loop.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-lib_loop.c,v 1.1 2012/12/20 21:55:29 joerg Exp $
+
+--- lib/loop.c.orig 2012-12-20 14:03:34.000000000 +0000
++++ lib/loop.c
+@@ -85,14 +85,15 @@ void signal_main_thread(void)
+ }
+
+ static int ending=0;
+-void * just_end_it_now(void * ignore)
++void *just_end_it_now(void * ignore)
+ {
+- if (ending) return;
++ if (ending) return NULL;
+ ending=1;
+ if (libafpclient->forced_ending_hook)
+ libafpclient->forced_ending_hook();
+ exit_program=2;
+ signal_main_thread();
++ return NULL;
+ }
+
+ /*This is a hack to handle a problem where the first pthread_kill doesnt' work*/