Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
49bfc728
Commit
49bfc728
authored
Apr 23, 2002
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solaris endian changes
parent
ab4126d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
main.c
main.c
+4
-1
rfb.h
rfb.h
+14
-1
No files found.
main.c
View file @
49bfc728
...
@@ -34,7 +34,10 @@
...
@@ -34,7 +34,10 @@
MUTEX
(
logMutex
);
MUTEX
(
logMutex
);
char
rfbEndianTest
=
(
_BYTE_ORDER
==
_LITTLE_ENDIAN
);
/* we cannot compare to _LITTLE_ENDIAN, because some systems
(as Solaris) assume little endian if _LITTLE_ENDIAN is
defined, even if _BYTE_ORDER is not _LITTLE_ENDIAN */
char
rfbEndianTest
=
(
_BYTE_ORDER
==
1234
);
/*
/*
* rfbLog prints a time-stamped message to the log file (stderr).
* rfbLog prints a time-stamped message to the log file (stderr).
...
...
rfb.h
View file @
49bfc728
...
@@ -62,9 +62,22 @@ typedef unsigned long KeySym;
...
@@ -62,9 +62,22 @@ typedef unsigned long KeySym;
#include <machine/endian.h>
#include <machine/endian.h>
#define _BYTE_ORDER BYTE_ORDER
#define _BYTE_ORDER BYTE_ORDER
#define _LITTLE_ENDIAN LITTLE_ENDIAN
#define _LITTLE_ENDIAN LITTLE_ENDIAN
#elif sparc
#elif defined (__SVR4) && defined (__sun)
/* Solaris */
#include <sys/types.h>
#if defined(__sparc)
/* SPARC here (big endian) */
#ifndef _BIG_ENDIAN
#define _BIG_ENDIAN 4321
#endif
#define _BYTE_ORDER _BIG_ENDIAN
#elif defined(__i386)
#ifndef _LITTLE_ENDIAN
#define _LITTLE_ENDIAN 1234
#define _LITTLE_ENDIAN 1234
#endif
#define _BYTE_ORDER _LITTLE_ENDIAN
#define _BYTE_ORDER _LITTLE_ENDIAN
#else
#error Solaris 2.5.1 had ppc support did it not? :-)
#endif
#undef Bool
#undef Bool
#define Bool char
#define Bool char
#undef SIGNED
#undef SIGNED
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment