summaryrefslogtreecommitdiff
path: root/www/nvu/patches
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-08-13 22:20:14 +0000
committerdholland <dholland@pkgsrc.org>2011-08-13 22:20:14 +0000
commitb6f218d297934d82319b3bf11d3fbb3733135c02 (patch)
tree9534980b06e0d27938c160dc07e210ea7fec3927 /www/nvu/patches
parent1fbfd40bb80485b923320f66ea472aa8c6b0e834 (diff)
downloadpkgsrc-b6f218d297934d82319b3bf11d3fbb3733135c02.tar.gz
Make this build on amd64.
Diffstat (limited to 'www/nvu/patches')
-rw-r--r--www/nvu/patches/patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp17
-rw-r--r--www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_cfg15
-rw-r--r--www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_h32
-rw-r--r--www/nvu/patches/patch-nsprpub_pr_src_io_prprf_c18
4 files changed, 82 insertions, 0 deletions
diff --git a/www/nvu/patches/patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp b/www/nvu/patches/patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp
new file mode 100644
index 00000000000..4c45c1c040d
--- /dev/null
+++ b/www/nvu/patches/patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp
@@ -0,0 +1,17 @@
+$NetBSD: patch-netwerk_protocol_http_src_nshttpconnectionmgr_cpp,v 1.1 2011/08/13 22:20:14 dholland Exp $
+
+Build on amd64.
+
+--- netwerk/protocol/http/src/nsHttpConnectionMgr.cpp~ 2004-09-01 23:31:03.000000000 +0000
++++ netwerk/protocol/http/src/nsHttpConnectionMgr.cpp
+@@ -834,8 +834,8 @@ nsHttpConnectionMgr::OnMsgReclaimConnect
+ void
+ nsHttpConnectionMgr::OnMsgUpdateParam(nsresult status, void *param)
+ {
+- PRUint16 name = (PRUint32(param) & 0xFFFF0000) >> 16;
+- PRUint16 value = PRUint32(param) & 0x0000FFFF;
++ PRUint16 name = (PRUint32((uintptr_t)param) & 0xFFFF0000) >> 16;
++ PRUint16 value = PRUint32((uintptr_t)param) & 0x0000FFFF;
+
+ switch (name) {
+ case MAX_CONNECTIONS:
diff --git a/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_cfg b/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_cfg
new file mode 100644
index 00000000000..d181ad1547c
--- /dev/null
+++ b/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_cfg
@@ -0,0 +1,15 @@
+$NetBSD: patch-nsprpub_pr_include_md__netbsd_cfg,v 1.1 2011/08/13 22:20:14 dholland Exp $
+
+Build on amd64.
+
+--- nsprpub/pr/include/md/_netbsd.cfg~ 2000-12-01 21:29:17.000000000 +0000
++++ nsprpub/pr/include/md/_netbsd.cfg
+@@ -137,7 +137,7 @@
+ #define PR_ALIGN_OF_DOUBLE 8
+ #define PR_ALIGN_OF_POINTER 4
+
+-#elif defined(__alpha__)
++#elif defined(__alpha__) || defined(__x86_64__)
+ #define IS_LITTLE_ENDIAN 1
+ #undef IS_BIG_ENDIAN
+ #define HAVE_LONG_LONG
diff --git a/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_h b/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_h
new file mode 100644
index 00000000000..c6c9172142f
--- /dev/null
+++ b/www/nvu/patches/patch-nsprpub_pr_include_md__netbsd_h
@@ -0,0 +1,32 @@
+$NetBSD: patch-nsprpub_pr_include_md__netbsd_h,v 1.1 2011/08/13 22:20:14 dholland Exp $
+
+Build on amd64.
+
+--- nsprpub/pr/include/md/_netbsd.h~ 2003-09-11 17:24:53.000000000 +0000
++++ nsprpub/pr/include/md/_netbsd.h
+@@ -42,6 +42,8 @@
+ #define _PR_SI_SYSNAME "NetBSD"
+ #if defined(__i386__)
+ #define _PR_SI_ARCHITECTURE "x86"
++#elif defined(__x86_64__)
++#define _PR_SI_ARCHITECTURE "x86-64"
+ #elif defined(__alpha__)
+ #define _PR_SI_ARCHITECTURE "alpha"
+ #elif defined(__m68k__)
+@@ -108,6 +110,16 @@
+ }
+ #define _MD_GET_SP(_thread) CONTEXT(_thread)[2]
+ #endif
++#ifdef __x86_64__
++#define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
++{ \
++ sigsetjmp(CONTEXT(_thread), 1); \
++ CONTEXT(_thread)[_JB_RSP] = (unsigned char*) ((_sp) - 128); \
++ CONTEXT(_thread)[_JB_PC] = (int) _main; \
++ *status = PR_TRUE; \
++}
++#define _MD_GET_SP(_thread) CONTEXT(_thread)[_JB_RSP]
++#endif
+ #ifdef __sparc__
+ #define _MD_INIT_CONTEXT(_thread, _sp, _main, status) \
+ { \
diff --git a/www/nvu/patches/patch-nsprpub_pr_src_io_prprf_c b/www/nvu/patches/patch-nsprpub_pr_src_io_prprf_c
new file mode 100644
index 00000000000..11bcccf5395
--- /dev/null
+++ b/www/nvu/patches/patch-nsprpub_pr_src_io_prprf_c
@@ -0,0 +1,18 @@
+$NetBSD: patch-nsprpub_pr_src_io_prprf_c,v 1.1 2011/08/13 22:20:14 dholland Exp $
+
+Use valid va_list handling.
+
+--- nsprpub/pr/src/io/prprf.c~ 2004-03-09 03:18:19.000000000 +0000
++++ nsprpub/pr/src/io/prprf.c
+@@ -51,7 +51,10 @@
+ ** Note: on some platforms va_list is defined as an array,
+ ** and requires array notation.
+ */
+-#if (defined(LINUX) && defined(__x86_64__))
++#if __STDC__ >= 19990101 || defined(__NetBSD__) || defined(__FreeBSD__) || \
++ defined(__OpenBSD__) || defined(__DragonFly__)
++#define VARARGS_ASSIGN(foo, bar) va_copy((foo), (bar))
++#elif (defined(LINUX) && defined(__x86_64__))
+ #define VARARGS_ASSIGN(foo, bar) __va_copy((foo), (bar))
+ #elif (defined(LINUX) && defined(__powerpc__)) || \
+ (defined(LINUX) && defined(__s390__)) || \