summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/libpthread_setcancel.patch34
-rw-r--r--debian/patches/series1
2 files changed, 35 insertions, 0 deletions
diff --git a/debian/patches/libpthread_setcancel.patch b/debian/patches/libpthread_setcancel.patch
new file mode 100644
index 00000000..a0351e82
--- /dev/null
+++ b/debian/patches/libpthread_setcancel.patch
@@ -0,0 +1,34 @@
+Index: libpthread/pthread/pt-setcancelstate.c
+===================================================================
+RCS file: /cvsroot/hurd/hurd/libpthread/pthread/pt-setcancelstate.c,v
+retrieving revision 1.1
+diff -u -p -r1.1 pt-setcancelstate.c
+--- libpthread/pthread/pt-setcancelstate.c 10 Oct 2002 23:05:06 -0000 1.1
++++ libpthread/pthread/pt-setcancelstate.c 28 Apr 2009 17:51:08 -0000
+@@ -35,7 +35,8 @@ pthread_setcancelstate (int state, int *
+ break;
+ }
+
+- *oldstate = p->cancel_state;
++ if (oldstate)
++ *oldstate = p->cancel_state;
+ p->cancel_state = state;
+
+ return 0;
+Index: libpthread/pthread/pt-setcanceltype.c
+===================================================================
+RCS file: /cvsroot/hurd/hurd/libpthread/pthread/pt-setcanceltype.c,v
+retrieving revision 1.1
+diff -u -p -r1.1 pt-setcanceltype.c
+--- libpthread/pthread/pt-setcanceltype.c 10 Oct 2002 23:05:06 -0000 1.1
++++ libpthread/pthread/pt-setcanceltype.c 28 Apr 2009 17:51:08 -0000
+@@ -35,7 +35,8 @@ pthread_setcanceltype (int type, int *ol
+ break;
+ }
+
+- *oldtype = p->cancel_type;
++ if (oldtype)
++ *oldtype = p->cancel_type;
+ p->cancel_type = type;
+
+ return 0;
diff --git a/debian/patches/series b/debian/patches/series
index ad3a4587..d8c00182 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -25,3 +25,4 @@ stat_round.patch -p0
dir_acces_fix.patch -p0
libports_stability.patch -p0
libpthread_fix.patch -p0
+libpthread_setcancel.patch -p0