summaryrefslogtreecommitdiff
path: root/net/tightvnc/patches/patch-am
blob: 11bc397a8d690c8ed3c61664871bef276b5f702a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-am,v 1.1 2005/04/06 04:44:15 xtraeme Exp $

--- Xvnc/programs/Xserver/include/misc.h.orig   1996-12-23 07:09:29.000000000 +0000
+++ Xvnc/programs/Xserver/include/misc.h        2005-02-17 23:05:46.000000000 +0000
@@ -83,6 +83,10 @@
 #include <X11/Xmd.h>
 #include <X11/X.h>
 
+#ifdef __NetBSD__
+#include <stdlib.h>
+#endif
+
 #ifndef NULL
 #ifndef X_NOT_STDC_ENV
 #include <stddef.h>
@@ -159,7 +166,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)
 #define abs(a) ((a) > 0 ? (a) : -(a))
 #endif
 #else /* AMOEBA || __EMX__ */