1
0
mirror of https://github.com/KDE/krfb synced 2026-07-01 07:41:17 -07:00

tru64 fix

svn path=/trunk/kdenetwork/krfb/; revision=180556
This commit is contained in:
Thomas Leitner
2002-09-26 19:01:41 +00:00
parent 07e62fcc34
commit 9fef33af0f
5 changed files with 20 additions and 1 deletions

View File

@@ -38,6 +38,9 @@
#endif
#include <fcntl.h>
#include <errno.h>
#ifdef __osf__
typedef int socklen_t;
#endif
#ifdef USE_LIBWRAP
#include <tcpd.h>

View File

@@ -21,6 +21,9 @@
#endif
#include <sys/types.h>
#ifdef __osf__
typedef int socklen_t;
#endif
#ifndef WIN32
#include <sys/socket.h>
#include <netinet/in.h>
@@ -388,7 +391,7 @@ void defaultSetXCutText(char* text, int len, rfbClientPtr cl)
/* TODO: add a nice VNC or RFB cursor */
#if defined(WIN32) || defined(sparc) || defined(_AIX)
#if defined(WIN32) || defined(sparc) || defined(_AIX) || defined(__osf__)
static rfbCursor myCursor =
{
"\000\102\044\030\044\102\000",

View File

@@ -43,7 +43,9 @@ typedef unsigned short CARD16;
typedef unsigned int CARD32;
typedef CARD32 Pixel;
/* typedef CARD32 KeySym; */
#ifndef __osf__
typedef unsigned long KeySym;
#endif
#define SIGNED signed
/* for some strange reason, "typedef signed char Bool;" yields a four byte
signed int on IRIX, but only for rfbserver.o!!! */
@@ -91,8 +93,13 @@ typedef unsigned long KeySym;
#undef Bool
#define Bool int
#else
#ifdef __osf__
#include <machine/endian.h>
#define _BYTE_ORDER BYTE_ORDER
#else
#include <sys/endian.h>
#endif
#endif
#ifndef _BYTE_ORDER
#define _BYTE_ORDER __BYTE_ORDER

View File

@@ -37,6 +37,9 @@
#include <arpa/inet.h>
#endif
#include <sys/types.h>
#ifdef __osf__
typedef int socklen_t;
#endif
#ifdef CORBA
#include <vncserverctrl.h>

View File

@@ -57,6 +57,9 @@
#include <unistd.h>
#include <arpa/inet.h>
#endif
#if defined(__osf__)
typedef int socklen_t;
#endif
#if defined(__linux__) && defined(NEED_TIMEVAL)
struct timeval
{