Index: fg_server.cpp
===================================================================
RCS file: /home/cvs/anders/FlightGear/fgmp/fg_server/src/fg_server.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.5
diff -u -8 -r1.1.1.1 -r1.5
Index: fg_server.hpp
===================================================================
RCS file: /home/cvs/anders/FlightGear/fgmp/fg_server/src/fg_server.hpp,v
retrieving revision 1.1.1.1
retrieving revision 1.3
diff -u -8 -r1.1.1.1 -r1.3
--- fg_server.hpp	29 Apr 2007 17:01:22 -0000	1.1.1.1
+++ fg_server.hpp	29 Apr 2007 20:11:55 -0000	1.3
@@ -14,17 +14,21 @@
 
 #include <iostream>
 #include <fstream>
 #include <list>
 #include <string>
 #include <string.h>
 #include <errno.h>
 #include <time.h>
+#ifdef __sparc
+#include <sys/int_types.h>
+#else
 #include <stdint.h>
+#endif
 #include <unistd.h>
 #include "netSocket.h"
 #include "logobject.hpp"
 #include "daemon.hpp"
 #include "fg_geometry.hpp"
 #include "mpmessages.hxx"
 #include "tiny_xdr.hxx"
 
Index: main.cpp
===================================================================
RCS file: /home/cvs/anders/FlightGear/fgmp/fg_server/src/main.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -8 -r1.1.1.1 -r1.2
--- main.cpp	29 Apr 2007 17:01:22 -0000	1.1.1.1
+++ main.cpp	29 Apr 2007 17:41:28 -0000	1.2
@@ -1,11 +1,14 @@
 using namespace std;
 
 #include <cstdlib>
+#ifdef __sparc
+#include <signal.h>
+#endif
 #include "fg_server.hpp"
 #include "fg_config.hpp"
 #include "daemon.hpp"
 #include "typcnvt.hpp"
 
 FG_SERVER       Servant;
 extern	bool    RunAsDaemon;
 extern	cDaemon Myself;
Index: tiny_xdr.hxx
===================================================================
RCS file: /home/cvs/anders/FlightGear/fgmp/fg_server/src/tiny_xdr.hxx,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -8 -r1.1.1.1 -r1.2
--- tiny_xdr.hxx	29 Apr 2007 17:01:22 -0000	1.1.1.1
+++ tiny_xdr.hxx	29 Apr 2007 17:41:28 -0000	1.2
@@ -14,25 +14,27 @@
 #ifndef TINY_XDR_HEADER
 #define TINY_XDR_HEADER
 
 #ifdef HAVE_CONFIG_H
 #   include <config.h>
 #endif
 #ifdef HAVE_STDINT_H
 #   include <stdint.h>
-#elif defined( _MSC_VER ) || defined(__MINGW32__) || defined(sun)
+#elif defined( _MSC_VER ) || defined(__MINGW32__)
 typedef signed char        int8_t;
 typedef signed short       int16_t;
 typedef signed int         int32_t;
 typedef __int64            int64_t;
 typedef unsigned char      uint8_t;
 typedef unsigned short     uint16_t;
 typedef unsigned int       uint32_t;
 typedef unsigned __int64   uint64_t;
+#elif defined(__sparc)
+#include <sys/int_types.h>
 #else
 #   error
 #   error "Port me! Platforms that don't have <stdint.h> need to define int8_t, et. al."
 #   error
 #endif
 
 // Establish __BYTE_ORDER
 #ifdef __linux__
@@ -47,16 +49,21 @@
 #       define __BYTE_ORDER __LITTLE_ENDIAN
 #   endif
 
 #elif defined __sgi
 #   ifndef __BYTE_ORDER
 #           define __BYTE_ORDER __BIG_ENDIAN
 #   endif
 
+#elif defined __sparc
+#   ifndef __BYTE_ORDER
+#           define __BYTE_ORDER __BIG_ENDIAN
+#   endif
+
 #elif defined(__CYGWIN__) || defined(_WIN32)
 #   ifndef __BYTE_ORDER
 #           define __BYTE_ORDER __LITTLE_ENDIAN
 #   endif
 
 #endif
 
 #if ((__BYTE_ORDER != __LITTLE_ENDIAN) && (__BYTE_ORDER != __BIG_ENDIAN))
@@ -84,17 +91,17 @@
     return ((b&0xff00)>>8)|((b&0x00ff)>>8);
 }
 
 inline uint32_t bswap_32(unsigned int b) {
     return ((b&0xff000000)>>24)|((b&0x00ff0000)>>8)|
             ((b&0x0000ff00)<<8)|((b&0x000000ff)<<24);
 }
 
-inline uint64_t bswap_64(unsignedlonglong b) {
+inline uint64_t bswap_64(uint64_t b) {
     return ( ((b&0xff00000000000000LL) >> 56) |
              ((b&0x00ff000000000000LL) >> 40) |
              ((b&0x0000ff0000000000LL) >> 24) |
              ((b&0x000000ff00000000LL) >> 8) |
              ((b&0x00000000ff000000LL) << 8) |
              ((b&0x0000000000ff0000LL) << 24) |
              ((b&0x000000000000ff00LL) << 40) |
              ((b&0x00000000000000ffLL) << 56) );
Index: typcnvt.hpp
===================================================================
RCS file: /home/cvs/anders/FlightGear/fgmp/fg_server/src/typcnvt.hpp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -8 -r1.1.1.1 -r1.2
--- typcnvt.hpp	29 Apr 2007 17:01:22 -0000	1.1.1.1
+++ typcnvt.hpp	29 Apr 2007 17:41:28 -0000	1.2
@@ -1,11 +1,11 @@
 //////////////////////////////////////////////////////////////////////
 //
-// $Id: typcnvt.hpp,v 1.1.1.1 2007-04-29 17:01:22 anders Exp $
+// $Id: typcnvt.hpp,v 1.2 2007-04-29 17:41:28 anders Exp $
 //
 //////////////////////////////////////////////////////////////////////
 #ifndef TYPCNVTHDR
 #define TYPCNVTHDR 1
 
 using namespace std;
 
 #ifdef HAVE_CONFIG_H
@@ -193,17 +193,17 @@
         n_WorkNumber = (t_longlong) n_WorkNumber;
         if ((n_WorkNumber == 0) && (tmp != 0))
         {
             str_Return = "0" + str_Return;
         }
         else
         {
             n = n_Factor;
-            n_WorkNumber = abs(n_WorkNumber);
+            n_WorkNumber = abs((long int)n_WorkNumber);
             while (n_WorkNumber >= 0 && n > 1)
             {
                 str_Return = Numbers[n_WorkNumber % n_Base] + str_Return;
                 n_WorkNumber /= n_Base;
                 n /= n_Base;
             }
         }
 //        if (tmp != 0.0)
