pkgsrc/net/tightvnc/patches/patch-am

24 lines
662 B
Text

$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__ */