summaryrefslogtreecommitdiff
path: root/net/vnc/patches
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/vnc/patches
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/vnc/patches')
-rw-r--r--net/vnc/patches/patch-aj13
1 files changed, 13 insertions, 0 deletions
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__ */