summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-01-07 18:47:39 +0000
committermarino <marino@pkgsrc.org>2012-01-07 18:47:39 +0000
commite65297f9e7a2f7b45d03a56cc10090c024f6a413 (patch)
tree558645ac268580e5d227b1f48fcba70cf5262655 /devel
parent74846329064e0270f05884ac1b3c24bbf73239ed (diff)
downloadpkgsrc-e65297f9e7a2f7b45d03a56cc10090c024f6a413.tar.gz
devel/nspr, devel/xulrunner: PR#45638 (DragonFly support)
DragonFly has diverged from FreeBSD to the point where NSPR will not build LibreOffice on DragonFly due to being configured as DragonFly. These patches split out DragonFly as its own platform, and should not affect other platforms.
Diffstat (limited to 'devel')
-rw-r--r--devel/nspr/PLIST3
-rw-r--r--devel/xulrunner/distinfo10
-rw-r--r--devel/xulrunner/patches/patch-ac17
-rw-r--r--devel/xulrunner/patches/patch-nsprpub_pr_include_md__dragonfly.cfg199
-rw-r--r--devel/xulrunner/patches/patch-nsprpub_pr_include_md__pth.h30
-rw-r--r--devel/xulrunner/patches/patch-nsprpub_pr_include_md_prosdep.h13
-rw-r--r--devel/xulrunner/patches/patch-nsprpub_pr_src_md_unix_uxrng.c13
-rw-r--r--devel/xulrunner/patches/patch-nsprpub_pr_src_pthreads_ptio.c23
-rw-r--r--devel/xulrunner/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c13
9 files changed, 309 insertions, 12 deletions
diff --git a/devel/nspr/PLIST b/devel/nspr/PLIST
index 0af36d15f44..7353b863d2a 100644
--- a/devel/nspr/PLIST
+++ b/devel/nspr/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2010/09/09 09:30:24 tnn Exp $
+@comment $NetBSD: PLIST,v 1.12 2012/01/07 18:47:39 marino Exp $
bin/compile-et.pl
bin/nspr-config
bin/prerr.properties
@@ -8,6 +8,7 @@ include/nspr/md/_beos.cfg
include/nspr/md/_bsdi.cfg
include/nspr/md/_darwin.cfg
include/nspr/md/_dgux.cfg
+include/nspr/md/_dragonfly.cfg
include/nspr/md/_freebsd.cfg
include/nspr/md/_hpux32.cfg
include/nspr/md/_hpux64.cfg
diff --git a/devel/xulrunner/distinfo b/devel/xulrunner/distinfo
index 6d63b5b9c42..a6586a4aab7 100644
--- a/devel/xulrunner/distinfo
+++ b/devel/xulrunner/distinfo
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.56 2011/12/23 01:16:27 joerg Exp $
+$NetBSD: distinfo,v 1.57 2012/01/07 18:47:39 marino Exp $
SHA1 (firefox-8.0.source.tar.bz2) = 843cf4ad70d2fc4b16654c3ff9b080d3eb357452
RMD160 (firefox-8.0.source.tar.bz2) = f87ec7668b2dcc1bb581b97e1dbe85e4b97cb31c
Size (firefox-8.0.source.tar.bz2) = 70377448 bytes
SHA1 (patch-aa) = 3905ddf598c66758fe5c8862baaf029f32f8950e
SHA1 (patch-ab) = 5d4b7512f8bbdc9e2e05709cec5b36dc12c25997
-SHA1 (patch-ac) = 3d031c52056a4792119104e3c6a6f2377d00d04a
+SHA1 (patch-ac) = 6aa120769b63efa5869029655f50af901edb9129
SHA1 (patch-ad) = 7afb960af4e4a311481e7a7b25008ca9b9f7fba1
SHA1 (patch-ae) = 470d64f32fe1e619a101486a4bec45d2a06b6cab
SHA1 (patch-af) = 13a9617cd2894cf342487d2a9cfe8cf3066ba0df
@@ -55,6 +55,12 @@ SHA1 (patch-ml) = 9003af056e5b671b2345d0a75e99836746369c00
SHA1 (patch-mm) = f103ec94a9d4c6c910eb9da9cc3df486b8294415
SHA1 (patch-mn) = a59f31b58547657b96a45a2753aab93866940203
SHA1 (patch-mp) = 18d2490b6bcd4f017cbf2734a920c3830bfe8856
+SHA1 (patch-nsprpub_pr_include_md__dragonfly.cfg) = 9888fa5070d2201a8912be33a32ae32f1d26f8ce
+SHA1 (patch-nsprpub_pr_include_md__pth.h) = 4bfa7e66ac4017169aca87b2643218d1b1bcddcf
+SHA1 (patch-nsprpub_pr_include_md_prosdep.h) = ffbe93d98a2d0c6e9587bdf2b9ccfc81a342c34e
+SHA1 (patch-nsprpub_pr_src_md_unix_uxrng.c) = df081b19c517b034b0aa37c66fcd5ab8e5bcf67c
+SHA1 (patch-nsprpub_pr_src_pthreads_ptio.c) = f4f6e9b5e24de217665ad3a41ad4f1a24deeb519
+SHA1 (patch-nsprpub_pr_src_pthreads_ptsynch.c) = 9099113a3f783ef410d8fcce5cfc730b98a93bc7
SHA1 (patch-pa) = 11d8ec21533250a962d846e1d06b6a61722fcd60
SHA1 (patch-pb) = 9662aa24ed81760e9cdaffec17592cfe9bbbab22
SHA1 (patch-pc) = a0fbd378e0209259c97c8e24c8eccc02b543e08f
diff --git a/devel/xulrunner/patches/patch-ac b/devel/xulrunner/patches/patch-ac
index b41d7344f46..d81db7bf530 100644
--- a/devel/xulrunner/patches/patch-ac
+++ b/devel/xulrunner/patches/patch-ac
@@ -1,6 +1,6 @@
-$NetBSD: patch-ac,v 1.2 2011/04/26 14:16:36 tnn Exp $
+$NetBSD: patch-ac,v 1.3 2012/01/07 18:47:39 marino Exp $
---- nsprpub/configure.in.orig 2011-02-03 20:12:03.000000000 +0000
+--- nsprpub/configure.in.orig 2011-09-02 20:15:44.000000000 +0000
+++ nsprpub/configure.in
@@ -71,7 +71,7 @@ OBJDIR_NAME=.
OBJDIR_SUFFIX=OBJ
@@ -11,7 +11,7 @@ $NetBSD: patch-ac,v 1.2 2011/04/26 14:16:36 tnn Exp $
LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
CYGWIN_WRAPPER=
MACOS_SDK_DIR=
-@@ -1311,6 +1311,34 @@ tools are selected during the Xcode/Deve
+@@ -1311,6 +1311,33 @@ tools are selected during the Xcode/Deve
DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
MDCPUCFG_H=_freebsd.cfg
PR_MD_CSRCS=freebsd.c
@@ -25,7 +25,6 @@ $NetBSD: patch-ac,v 1.2 2011/04/26 14:16:36 tnn Exp $
+ USE_PTHREADS=1
+ fi
+ AC_DEFINE(XP_UNIX)
-+ AC_DEFINE(FREEBSD)
+ AC_DEFINE(HAVE_BSD_FLOCK)
+ AC_DEFINE(HAVE_SOCKLEN_T)
+ CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall"
@@ -38,7 +37,7 @@ $NetBSD: patch-ac,v 1.2 2011/04/26 14:16:36 tnn Exp $
+ MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
+ DSO_CFLAGS=-fPIC
+ DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
-+ MDCPUCFG_H=_freebsd.cfg
++ MDCPUCFG_H=_dragonfly.cfg
+ PR_MD_CSRCS=freebsd.c
+ if test "$LIBRUNPATH"; then
+ DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH"
@@ -46,7 +45,7 @@ $NetBSD: patch-ac,v 1.2 2011/04/26 14:16:36 tnn Exp $
;;
*-hpux*)
-@@ -1925,6 +1953,7 @@ mips-nec-sysv*)
+@@ -1925,6 +1952,7 @@ mips-nec-sysv*)
AC_DEFINE(XP_UNIX)
AC_DEFINE(NETBSD)
AC_DEFINE(HAVE_BSD_FLOCK)
@@ -54,7 +53,7 @@ $NetBSD: patch-ac,v 1.2 2011/04/26 14:16:36 tnn Exp $
if test -z "$USE_NSPR_THREADS"; then
USE_PTHREADS=1
fi
-@@ -2730,7 +2759,7 @@ if test -n "$USE_PTHREADS"; then
+@@ -2730,7 +2758,7 @@ if test -n "$USE_PTHREADS"; then
if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
ac_cv_have_dash_pthread=yes
case "$target_os" in
@@ -63,7 +62,7 @@ $NetBSD: patch-ac,v 1.2 2011/04/26 14:16:36 tnn Exp $
# Freebsd doesn't use -pthread for compiles, it uses them for linking
;;
*)
-@@ -2768,7 +2797,7 @@ if test -n "$USE_PTHREADS"; then
+@@ -2768,7 +2796,7 @@ if test -n "$USE_PTHREADS"; then
_PTHREAD_LDFLAGS=
fi
;;
@@ -72,7 +71,7 @@ $NetBSD: patch-ac,v 1.2 2011/04/26 14:16:36 tnn Exp $
AC_DEFINE(_REENTRANT)
AC_DEFINE(_THREAD_SAFE)
dnl -pthread links in -lc_r, so don't specify it explicitly.
-@@ -2849,7 +2878,7 @@ case "$target" in
+@@ -2849,7 +2877,7 @@ case "$target" in
AC_DEFINE(_PR_NEED_PTHREAD_INIT)
fi
;;
diff --git a/devel/xulrunner/patches/patch-nsprpub_pr_include_md__dragonfly.cfg b/devel/xulrunner/patches/patch-nsprpub_pr_include_md__dragonfly.cfg
new file mode 100644
index 00000000000..611706b25ad
--- /dev/null
+++ b/devel/xulrunner/patches/patch-nsprpub_pr_include_md__dragonfly.cfg
@@ -0,0 +1,199 @@
+$NetBSD: patch-nsprpub_pr_include_md__dragonfly.cfg,v 1.1 2012/01/07 18:47:39 marino Exp $
+
+--- nsprpub/pr/include/md/_dragonfly.cfg.orig 2011-11-21 15:51:33.130151000 +0000
++++ nsprpub/pr/include/md/_dragonfly.cfg
+@@ -0,0 +1,194 @@
++/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
++/* ***** BEGIN LICENSE BLOCK *****
++ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
++ *
++ * The contents of this file are subject to the Mozilla Public License Version
++ * 1.1 (the "License"); you may not use this file except in compliance with
++ * the License. You may obtain a copy of the License at
++ * http://www.mozilla.org/MPL/
++ *
++ * Software distributed under the License is distributed on an "AS IS" basis,
++ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
++ * for the specific language governing rights and limitations under the
++ * License.
++ *
++ * The Original Code is the Netscape Portable Runtime (NSPR).
++ *
++ * The Initial Developer of the Original Code is
++ * Netscape Communications Corporation.
++ * Portions created by the Initial Developer are Copyright (C) 1998-2000
++ * the Initial Developer. All Rights Reserved.
++ *
++ * Contributor(s):
++ *
++ * Alternatively, the contents of this file may be used under the terms of
++ * either the GNU General Public License Version 2 or later (the "GPL"), or
++ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
++ * in which case the provisions of the GPL or the LGPL are applicable instead
++ * of those above. If you wish to allow use of your version of this file only
++ * under the terms of either the GPL or the LGPL, and not to allow others to
++ * use your version of this file under the terms of the MPL, indicate your
++ * decision by deleting the provisions above and replace them with the notice
++ * and other provisions required by the GPL or the LGPL. If you do not delete
++ * the provisions above, a recipient may use your version of this file under
++ * the terms of any one of the MPL, the GPL or the LGPL.
++ *
++ * ***** END LICENSE BLOCK ***** */
++
++#ifndef nspr_cpucfg___
++#define nspr_cpucfg___
++
++#ifndef XP_UNIX
++#define XP_UNIX
++#endif
++
++#define PR_AF_INET6 28 /* same as AF_INET6 */
++
++#ifndef HAVE_LONG_LONG
++#define HAVE_LONG_LONG
++#endif
++
++#if defined(__i386__)
++
++#define IS_LITTLE_ENDIAN 1
++#undef IS_BIG_ENDIAN
++#undef HAVE_ALIGNED_DOUBLES
++#undef HAVE_ALIGNED_LONGLONGS
++
++#define PR_BYTES_PER_BYTE 1
++#define PR_BYTES_PER_SHORT 2
++#define PR_BYTES_PER_INT 4
++#define PR_BYTES_PER_INT64 8
++#define PR_BYTES_PER_LONG 4
++#define PR_BYTES_PER_FLOAT 4
++#define PR_BYTES_PER_DOUBLE 8
++#define PR_BYTES_PER_WORD 4
++#define PR_BYTES_PER_DWORD 8
++#define PR_BYTES_PER_WORD_LOG2 2
++#define PR_BYTES_PER_DWORD_LOG2 3
++
++#define PR_BITS_PER_BYTE 8
++#define PR_BITS_PER_SHORT 16
++#define PR_BITS_PER_INT 32
++#define PR_BITS_PER_INT64 64
++#define PR_BITS_PER_LONG 32
++#define PR_BITS_PER_FLOAT 32
++#define PR_BITS_PER_DOUBLE 64
++#define PR_BITS_PER_WORD 32
++
++#define PR_BITS_PER_BYTE_LOG2 3
++#define PR_BITS_PER_SHORT_LOG2 4
++#define PR_BITS_PER_INT_LOG2 5
++#define PR_BITS_PER_INT64_LOG2 6
++#define PR_BITS_PER_LONG_LOG2 5
++#define PR_BITS_PER_FLOAT_LOG2 5
++#define PR_BITS_PER_DOUBLE_LOG2 6
++#define PR_BITS_PER_WORD_LOG2 5
++
++#define PR_ALIGN_OF_SHORT 2
++#define PR_ALIGN_OF_INT 4
++#define PR_ALIGN_OF_LONG 4
++#define PR_ALIGN_OF_INT64 4
++#define PR_ALIGN_OF_FLOAT 4
++#define PR_ALIGN_OF_DOUBLE 4
++#define PR_ALIGN_OF_POINTER 4
++
++#elif defined(__amd64__)
++
++#define IS_LITTLE_ENDIAN 1
++#undef IS_BIG_ENDIAN
++#define HAVE_ALIGNED_DOUBLES
++#define HAVE_ALIGNED_LONGLONGS
++#define IS_64
++
++#define PR_BYTES_PER_BYTE 1
++#define PR_BYTES_PER_SHORT 2
++#define PR_BYTES_PER_INT 4
++#define PR_BYTES_PER_INT64 8
++#define PR_BYTES_PER_LONG 8
++#define PR_BYTES_PER_FLOAT 4
++#define PR_BYTES_PER_DOUBLE 8
++#define PR_BYTES_PER_WORD 8
++#define PR_BYTES_PER_DWORD 8
++#define PR_BYTES_PER_WORD_LOG2 3
++#define PR_BYTES_PER_DWORD_LOG2 3
++
++#define PR_BITS_PER_BYTE 8
++#define PR_BITS_PER_SHORT 16
++#define PR_BITS_PER_INT 32
++#define PR_BITS_PER_INT64 64
++#define PR_BITS_PER_LONG 64
++#define PR_BITS_PER_FLOAT 32
++#define PR_BITS_PER_DOUBLE 64
++#define PR_BITS_PER_WORD 64
++
++#define PR_BITS_PER_BYTE_LOG2 3
++#define PR_BITS_PER_SHORT_LOG2 4
++#define PR_BITS_PER_INT_LOG2 5
++#define PR_BITS_PER_INT64_LOG2 6
++#define PR_BITS_PER_LONG_LOG2 6
++#define PR_BITS_PER_FLOAT_LOG2 5
++#define PR_BITS_PER_DOUBLE_LOG2 6
++#define PR_BITS_PER_WORD_LOG2 6
++
++#define PR_ALIGN_OF_SHORT 2
++#define PR_ALIGN_OF_INT 4
++#define PR_ALIGN_OF_LONG 8
++#define PR_ALIGN_OF_INT64 8
++#define PR_ALIGN_OF_FLOAT 4
++#define PR_ALIGN_OF_DOUBLE 8
++#define PR_ALIGN_OF_POINTER 8
++#define PR_ALIGN_OF_WORD 8
++
++#else
++
++#error "Unknown CPU architecture"
++
++#endif
++
++#ifndef NO_NSPR_10_SUPPORT
++
++#define BYTES_PER_BYTE PR_BYTES_PER_BYTE
++#define BYTES_PER_SHORT PR_BYTES_PER_SHORT
++#define BYTES_PER_INT PR_BYTES_PER_INT
++#define BYTES_PER_INT64 PR_BYTES_PER_INT64
++#define BYTES_PER_LONG PR_BYTES_PER_LONG
++#define BYTES_PER_FLOAT PR_BYTES_PER_FLOAT
++#define BYTES_PER_DOUBLE PR_BYTES_PER_DOUBLE
++#define BYTES_PER_WORD PR_BYTES_PER_WORD
++#define BYTES_PER_DWORD PR_BYTES_PER_DWORD
++
++#define BITS_PER_BYTE PR_BITS_PER_BYTE
++#define BITS_PER_SHORT PR_BITS_PER_SHORT
++#define BITS_PER_INT PR_BITS_PER_INT
++#define BITS_PER_INT64 PR_BITS_PER_INT64
++#define BITS_PER_LONG PR_BITS_PER_LONG
++#define BITS_PER_FLOAT PR_BITS_PER_FLOAT
++#define BITS_PER_DOUBLE PR_BITS_PER_DOUBLE
++#define BITS_PER_WORD PR_BITS_PER_WORD
++
++#define BITS_PER_BYTE_LOG2 PR_BITS_PER_BYTE_LOG2
++#define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2
++#define BITS_PER_INT_LOG2 PR_BITS_PER_INT_LOG2
++#define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2
++#define BITS_PER_LONG_LOG2 PR_BITS_PER_LONG_LOG2
++#define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2
++#define BITS_PER_DOUBLE_LOG2 PR_BITS_PER_DOUBLE_LOG2
++#define BITS_PER_WORD_LOG2 PR_BITS_PER_WORD_LOG2
++
++#define ALIGN_OF_SHORT PR_ALIGN_OF_SHORT
++#define ALIGN_OF_INT PR_ALIGN_OF_INT
++#define ALIGN_OF_LONG PR_ALIGN_OF_LONG
++#define ALIGN_OF_INT64 PR_ALIGN_OF_INT64
++#define ALIGN_OF_FLOAT PR_ALIGN_OF_FLOAT
++#define ALIGN_OF_DOUBLE PR_ALIGN_OF_DOUBLE
++#define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER
++#define ALIGN_OF_WORD PR_ALIGN_OF_WORD
++
++#define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2
++#define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
++#define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
++
++#endif /* NO_NSPR_10_SUPPORT */
++
++#endif /* nspr_cpucfg___ */
diff --git a/devel/xulrunner/patches/patch-nsprpub_pr_include_md__pth.h b/devel/xulrunner/patches/patch-nsprpub_pr_include_md__pth.h
new file mode 100644
index 00000000000..42013e782a9
--- /dev/null
+++ b/devel/xulrunner/patches/patch-nsprpub_pr_include_md__pth.h
@@ -0,0 +1,30 @@
+$NetBSD: patch-nsprpub_pr_include_md__pth.h,v 1.1 2012/01/07 18:47:39 marino Exp $
+
+--- nsprpub/pr/include/md/_pth.h.orig 2011-09-02 20:15:44.000000000 +0000
++++ nsprpub/pr/include/md/_pth.h
+@@ -146,7 +146,7 @@
+ #define _PT_PTHREAD_COPY_THR_HANDLE(st, dt) (dt) = (st)
+ #elif defined(IRIX) || defined(OSF1) || defined(AIX) || defined(SOLARIS) \
+ || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \
+- || defined(HPUX) || defined(FREEBSD) \
++ || defined(HPUX) || defined(FREEBSD) || defined(__DragonFly__) \
+ || defined(NETBSD) || defined(OPENBSD) || defined(BSDI) \
+ || defined(NTO) || defined(DARWIN) \
+ || defined(UNIXWARE) || defined(RISCOS) || defined(SYMBIAN)
+@@ -237,7 +237,7 @@
+ #endif /* defined(_PR_DCETHREADS) */
+
+ #elif defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \
+- || defined(FREEBSD) || defined(SYMBIAN)
++ || defined(FREEBSD) || defined(SYMBIAN) || defined(__DragonFly__)
+ #define PT_PRIO_MIN sched_get_priority_min(SCHED_OTHER)
+ #define PT_PRIO_MAX sched_get_priority_max(SCHED_OTHER)
+ #elif defined(NTO)
+@@ -296,6 +296,7 @@ extern int (*_PT_aix_yield_fcn)();
+ #elif defined(HPUX) || defined(SOLARIS) \
+ || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \
+ || defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) \
++ || defined(__DragonFly__) \
+ || defined(BSDI) || defined(NTO) || defined(DARWIN) \
+ || defined(UNIXWARE) || defined(RISCOS) || defined(SYMBIAN)
+ #define _PT_PTHREAD_YIELD() sched_yield()
diff --git a/devel/xulrunner/patches/patch-nsprpub_pr_include_md_prosdep.h b/devel/xulrunner/patches/patch-nsprpub_pr_include_md_prosdep.h
new file mode 100644
index 00000000000..cac420fb3bc
--- /dev/null
+++ b/devel/xulrunner/patches/patch-nsprpub_pr_include_md_prosdep.h
@@ -0,0 +1,13 @@
+$NetBSD: patch-nsprpub_pr_include_md_prosdep.h,v 1.1 2012/01/07 18:47:39 marino Exp $
+
+--- nsprpub/pr/include/md/prosdep.h.orig 2011-09-02 20:15:44.000000000 +0000
++++ nsprpub/pr/include/md/prosdep.h
+@@ -66,7 +66,7 @@ PR_BEGIN_EXTERN_C
+ #if defined(AIX)
+ #include "md/_aix.h"
+
+-#elif defined(FREEBSD)
++#elif defined(FREEBSD) || defined(__DragonFly__)
+ #include "md/_freebsd.h"
+
+ #elif defined(NETBSD)
diff --git a/devel/xulrunner/patches/patch-nsprpub_pr_src_md_unix_uxrng.c b/devel/xulrunner/patches/patch-nsprpub_pr_src_md_unix_uxrng.c
new file mode 100644
index 00000000000..bc041cdafec
--- /dev/null
+++ b/devel/xulrunner/patches/patch-nsprpub_pr_src_md_unix_uxrng.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-nsprpub_pr_src_md_unix_uxrng.c,v 1.1 2012/01/07 18:47:39 marino Exp $
+
+--- nsprpub/pr/src/md/unix/uxrng.c.orig 2011-09-02 20:15:44.000000000 +0000
++++ nsprpub/pr/src/md/unix/uxrng.c
+@@ -126,7 +126,7 @@ GetHighResClock(void *buf, size_t maxbyt
+
+ #elif (defined(LINUX) || defined(FREEBSD) || defined(__FreeBSD_kernel__) \
+ || defined(NETBSD) || defined(__NetBSD_kernel__) || defined(OPENBSD) \
+- || defined(SYMBIAN))
++ || defined(SYMBIAN)) || defined(__DragonFly__)
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
diff --git a/devel/xulrunner/patches/patch-nsprpub_pr_src_pthreads_ptio.c b/devel/xulrunner/patches/patch-nsprpub_pr_src_pthreads_ptio.c
new file mode 100644
index 00000000000..9f5d1e4fc33
--- /dev/null
+++ b/devel/xulrunner/patches/patch-nsprpub_pr_src_pthreads_ptio.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-nsprpub_pr_src_pthreads_ptio.c,v 1.1 2012/01/07 18:47:39 marino Exp $
+
+--- nsprpub/pr/src/pthreads/ptio.c.orig 2011-09-02 20:15:44.000000000 +0000
++++ nsprpub/pr/src/pthreads/ptio.c
+@@ -212,7 +212,8 @@ static PRBool _pr_ipv6_v6only_on_by_defa
+ || defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \
+ || defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) \
+ || defined(BSDI) || defined(NTO) || defined(DARWIN) \
+- || defined(UNIXWARE) || defined(RISCOS) || defined(SYMBIAN)
++ || defined(UNIXWARE) || defined(RISCOS) || defined(SYMBIAN) \
++ || defined(__DragonFly__)
+ #define _PRSelectFdSetArg_t fd_set *
+ #else
+ #error "Cannot determine architecture"
+@@ -3285,7 +3286,7 @@ static PRIOMethods _pr_socketpollfd_meth
+ || defined(AIX) || defined(FREEBSD) || defined(NETBSD) \
+ || defined(OPENBSD) || defined(BSDI) || defined(NTO) \
+ || defined(DARWIN) || defined(UNIXWARE) || defined(RISCOS) \
+- || defined(SYMBIAN)
++ || defined(SYMBIAN) || defined(__DragonFly__)
+ #define _PR_FCNTL_FLAGS O_NONBLOCK
+ #else
+ #error "Can't determine architecture"
diff --git a/devel/xulrunner/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c b/devel/xulrunner/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c
new file mode 100644
index 00000000000..72e319d315f
--- /dev/null
+++ b/devel/xulrunner/patches/patch-nsprpub_pr_src_pthreads_ptsynch.c
@@ -0,0 +1,13 @@
+$NetBSD: patch-nsprpub_pr_src_pthreads_ptsynch.c,v 1.1 2012/01/07 18:47:39 marino Exp $
+
+--- nsprpub/pr/src/pthreads/ptsynch.c.orig 2011-09-02 20:15:44.000000000 +0000
++++ nsprpub/pr/src/pthreads/ptsynch.c
+@@ -842,7 +842,7 @@ PR_IMPLEMENT(PRStatus) PR_DeleteSemaphor
+ */
+ #if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) \
+ || defined(FREEBSD) || defined(OPENBSD) || defined(BSDI) \
+- || defined(DARWIN) || defined(SYMBIAN)
++ || defined(DARWIN) || defined(SYMBIAN) || defined(__DragonFly__)
+ /* union semun is defined by including <sys/sem.h> */
+ #else
+ /* according to X/OPEN we have to define it ourselves */