~ubuntu-branches/ubuntu/saucy/nspr/saucy-updates

« back to all changes in this revision

Viewing changes to debian/patches/38_hurd.patch

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2012-11-27 17:39:22 UTC
  • mfrom: (1.1.15) (27.1.1 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121127173922-1zfbtwmy1vczqwxq
Tags: 2:4.9.3-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - rules: Enable Thumb2 build on armel, armhf.
  - control: Change Vcs-* to XS-Debian-Vcs-*.
  - control: Add conflicts to evolution-documentation-*,
    language-support-translation-*.
  - control: Add Breaks: evolution-plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh /usr/share/dpatch/dpatch-run
2
 
## 38_hurd.dpatch by  <glandium@debian.org>
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
## DP: Fix FTBFS on Hurd
6
 
 
7
 
@DPATCH@
8
 
 
9
 
diff --git a/mozilla/nsprpub/pr/include/md/_linux.cfg b/mozilla/nsprpub/pr/include/md/_linux.cfg
10
 
index dea4cf3..a26aa2a 100644
11
 
--- a/mozilla/nsprpub/pr/include/md/_linux.cfg
12
 
+++ b/mozilla/nsprpub/pr/include/md/_linux.cfg
13
 
@@ -53,6 +53,8 @@
14
 
 
15
 
 #ifdef __FreeBSD_kernel__
16
 
 #define PR_AF_INET6 28  /* same as AF_INET6 */
17
 
+#elif defined(__GNU__)
18
 
+#define PR_AF_INET6 26  /* same as AF_INET6 */
19
 
 #else
20
 
 #define PR_AF_INET6 10  /* same as AF_INET6 */
21
 
 #endif
22
 
diff --git a/mozilla/nsprpub/pr/include/md/_pth.h b/mozilla/nsprpub/pr/include/md/_pth.h
23
 
index 66a4c07..6e58dfb 100644
24
 
--- a/mozilla/nsprpub/pr/include/md/_pth.h
25
 
+++ b/mozilla/nsprpub/pr/include/md/_pth.h
26
 
@@ -150,10 +150,6 @@
27
 
        || defined(NETBSD) || defined(OPENBSD) || defined(BSDI) \
28
 
        || defined(NTO) || defined(DARWIN) \
29
 
        || defined(UNIXWARE) || defined(RISCOS) || defined(SYMBIAN)
30
 
-#ifdef __GNU__
31
 
-/* Hurd pthreads don't have an invalid value for pthread_t. -- rmh */
32
 
-#error Using Hurd pthreads
33
 
-#endif
34
 
 #define _PT_PTHREAD_INVALIDATE_THR_HANDLE(t)  (t) = 0
35
 
 #define _PT_PTHREAD_THR_HANDLE_IS_INVALID(t)  (t) == 0
36
 
 #define _PT_PTHREAD_COPY_THR_HANDLE(st, dt)   (dt) = (st)
37
 
diff --git a/mozilla/nsprpub/pr/src/md/unix/uxrng.c b/mozilla/nsprpub/pr/src/md/unix/uxrng.c
38
 
index d46f447..0d7beb4 100644
39
 
--- a/mozilla/nsprpub/pr/src/md/unix/uxrng.c
40
 
+++ b/mozilla/nsprpub/pr/src/md/unix/uxrng.c
41
 
@@ -126,7 +126,7 @@ GetHighResClock(void *buf, size_t maxbytes)
42
 
 
43
 
 #elif (defined(LINUX) || defined(FREEBSD) || defined(__FreeBSD_kernel__) \
44
 
     || defined(NETBSD) || defined(__NetBSD_kernel__) || defined(OPENBSD) \
45
 
-    || defined(SYMBIAN))
46
 
+    || defined(SYMBIAN) || defined(__GNU__))
47
 
 #include <sys/types.h>
48
 
 #include <sys/stat.h>
49
 
 #include <fcntl.h>