summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2005-02-04 09:57:12 +0000
committertron <tron@pkgsrc.org>2005-02-04 09:57:12 +0000
commite696a4e12f4101dcca086930ad4619823165c7db (patch)
tree0deef6af1306504083360179771c5aa7e75be5c2 /net
parent1c78954b5b73a904a69e52aa5992c10d50e4f08e (diff)
downloadpkgsrc-e696a4e12f4101dcca086930ad4619823165c7db.tar.gz
Don't define abs() as macro under NetBSD because it conflicts with the
prototype of abs() in "stdlib.h" after de-__P-ing "stdlib.h".
Diffstat (limited to 'net')
-rw-r--r--net/vnc/distinfo3
-rw-r--r--net/vnc/patches/patch-aj13
2 files changed, 15 insertions, 1 deletions
diff --git a/net/vnc/distinfo b/net/vnc/distinfo
index d8051d0e074..669375dbbb6 100644
--- a/net/vnc/distinfo
+++ b/net/vnc/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2002/10/23 18:16:58 bouyer Exp $
+$NetBSD: distinfo,v 1.7 2005/02/04 09:57:12 tron Exp $
SHA1 (vnc-3.3.3r2_unixsrc.tgz) = 98e9d2e2c2d0f4f9cb9cafee22d21a868189b176
Size (vnc-3.3.3r2_unixsrc.tgz) = 2072772 bytes
@@ -15,3 +15,4 @@ SHA1 (patch-af) = 369961aa3e089195653980da91e8fba53807fc53
SHA1 (patch-ag) = 89ce8a6ac8d51ffd4d4be4588e59b7dd53366716
SHA1 (patch-ah) = 0f9f3f3c9b167a2743e8dab2df430b0526346867
SHA1 (patch-ai) = 0e8e49a44fbe2cf8f371a1224e0064b7cb28597c
+SHA1 (patch-aj) = 3999e7514907d722d4884adcb245022b80d7182b
diff --git a/net/vnc/patches/patch-aj b/net/vnc/patches/patch-aj
new file mode 100644
index 00000000000..f681ca892f7
--- /dev/null
+++ b/net/vnc/patches/patch-aj
@@ -0,0 +1,13 @@
+$NetBSD: patch-aj,v 1.1 2005/02/04 09:57:12 tron Exp $
+
+--- Xvnc/programs/Xserver/include/misc.h.orig 1996-12-23 07:09:29.000000000 +0000
++++ Xvnc/programs/Xserver/include/misc.h 2005-02-04 09:51:52.000000000 +0000
+@@ -159,7 +159,7 @@
+ #define min(a, b) (((a) < (b)) ? (a) : (b))
+ #define max(a, b) (((a) > (b)) ? (a) : (b))
+ #if !defined(AMOEBA) && !defined(__EMX__)
+-#ifndef abs
++#if !defined(abs) && !defined(__NetBSD__)
+ #define abs(a) ((a) > 0 ? (a) : -(a))
+ #endif
+ #else /* AMOEBA || __EMX__ */