blob: 19ac766c096aa1ff345927768bf79b1521f37761 (
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
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-am,v 1.5 2008/04/01 22:50:24 markd Exp $
--- krfb/libvncserver/rfb.h.orig 2005-09-10 20:20:13.000000000 +1200
+++ krfb/libvncserver/rfb.h
@@ -38,9 +38,7 @@ extern "C"
#include "keysym.h"
/* TODO: this stuff has to go into autoconf */
-typedef unsigned char CARD8;
-typedef unsigned short CARD16;
-typedef unsigned int CARD32;
+#include <X11/Xmd.h>
typedef CARD32 Pixel;
/* typedef CARD32 KeySym; */
#ifndef __osf__
@@ -62,7 +60,7 @@ typedef unsigned long KeySym;
#ifdef __linux__
#include <endian.h>
-#elif defined(__APPLE__) || defined(__FreeBSD__)
+#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
#include <sys/types.h>
#include <machine/endian.h>
#ifndef _BYTE_ORDER
@@ -76,7 +74,7 @@ typedef unsigned long KeySym;
#if defined(__sparc)
/* SPARC here (big endian) */
#define _BYTE_ORDER 4321
-#elif defined(__i386)
+#elif defined(__i386) || defined(__amd64)
#define _BYTE_ORDER 1234
#else
#error Solaris 2.5.1 had ppc support did it not? :-)
|