patches/crrcsim-01.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 1473 40734173a8fe
permissions -rwxr-xr-x
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1473
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     1
diff -bur crrcsim-0.9.9.orig/crrc_config.h crrcsim-0.9.9/crrc_config.h
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     2
--- crrcsim-0.9.9.orig/crrc_config.h	Thu May 29 23:16:42 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     3
+++ crrcsim-0.9.9/crrc_config.h	Sun Oct  5 15:13:12 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     4
@@ -29,7 +29,7 @@
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     5
 #define HAVE_STRING_H 1
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     6
 
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     7
 /* Define to 1 if you have the <sys/io.h> header file. */
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     8
-#define HAVE_SYS_IO_H 1
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
     9
+/* #undef HAVE_SYS_IO_H */
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    10
 
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    11
 /* Define to 1 if you have the <sys/stat.h> header file. */
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    12
 #define HAVE_SYS_STAT_H 1
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    13
@@ -62,7 +62,7 @@
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    14
 #define PACKAGE_VERSION "0.9.9"
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    15
 
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    16
 /* Portaudio version, 0 to disable audio interface */
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    17
-#define PORTAUDIO 18
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    18
+#define PORTAUDIO 0
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    19
 
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    20
 /* Define to the necessary symbol if this constant uses a non-standard name on
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    21
    your system. */
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    22
diff -bur crrcsim-0.9.9.orig/chardevice/chardevicecommon.h crrcsim-0.9.9/chardevice/chardevicecommon.h
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    23
--- crrcsim-0.9.9.orig/chardevice/chardevicecommon.h	Thu Jan 24 18:01:31 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    24
+++ crrcsim-0.9.9/chardevice/chardevicecommon.h	Sun Oct  5 16:16:24 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    25
@@ -88,8 +88,12 @@
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    26
 #endif
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    27
 #ifndef MSG_NOSIGNAL
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    28
 /* FreeBSD and OS X use SO_NOSIGPIPE instead */
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    29
+#ifndef GD_CHIOTTE
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    30
+#define MSG_NOSIGNAL 0
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    31
+#else
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    32
 #define MSG_NOSIGNAL SO_NOSIGPIPE
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    33
 #endif
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    34
+#endif
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    35
 #ifndef ENONET
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    36
 /* always use these two together */
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    37
 #define ENONET EHOSTDOWN
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    38
diff -bur crrcsim-0.9.9.orig/chardevice/serialchardevice.cpp crrcsim-0.9.9/chardevice/serialchardevice.cpp
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    39
--- crrcsim-0.9.9.orig/chardevice/serialchardevice.cpp	Thu Feb  7 22:54:19 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    40
+++ crrcsim-0.9.9/chardevice/serialchardevice.cpp	Sun Oct  5 15:52:45 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    41
@@ -45,6 +45,10 @@
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    42
 #include <pinconstant.h> // for enabling rs485
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    43
 #endif
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    44
 
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    45
+// for bzero
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    46
+#ifndef GD_CHIOTTE
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    47
+#include <strings.h>
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    48
+#endif
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    49
 
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    50
 #ifdef WIN32
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    51
 
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    52
diff -bur crrcsim-0.9.9.orig/interface_parallel/parallel.cpp crrcsim-0.9.9/interface_parallel/parallel.cpp
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    53
--- crrcsim-0.9.9.orig/interface_parallel/parallel.cpp	Tue Apr 29 22:00:35 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    54
+++ crrcsim-0.9.9/interface_parallel/parallel.cpp	Sun Oct  5 16:41:44 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    55
@@ -14,7 +14,9 @@
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    56
 #     include <sys/io.h>
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    57
 #    else
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    58
 #     include <unistd.h>
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    59
-#     include <asm/io.h>
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    60
+#    define ioperm(a,b,c) -1
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    61
+#    define inb(a) 0
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    62
+#    define outb(a,b)
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    63
 #    endif
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    64
 #  endif
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    65
 #endif  // __APPLE__
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    66
diff -bur crrcsim-0.9.9.orig/interface_serial2/LoggerReader_ttyS.cpp crrcsim-0.9.9/interface_serial2/LoggerReader_ttyS.cpp
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    67
--- crrcsim-0.9.9.orig/interface_serial2/LoggerReader_ttyS.cpp	Sun Jan  9 18:07:44 2005
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    68
+++ crrcsim-0.9.9/interface_serial2/LoggerReader_ttyS.cpp	Sun Oct  5 15:41:14 2008
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    69
@@ -185,7 +185,12 @@
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    70
     tattr.c_cc[VTIME] = 0;
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    71
     cfsetospeed(&tattr, speed);         // BAUD-rate einstellen
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    72
     cfsetispeed(&tattr, speed);         // BAUD-rate einstellen
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    73
+
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    74
+// Ca existe pas sous Solaris GD 20081005
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    75
+#ifdef GD_CHIOTTE
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    76
     cfmakeraw(&tattr);                  // damit man Zugriff auf die "rohen" Daten bekommt
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    77
+#endif
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    78
+
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    79
     /*  tattr.c_cflag |= PARENB;        // enable  parity  generation  on  output  and  parity
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    80
      // checking for input. cfmakeraw stellt das aus!
40734173a8fe OpenGL Flight Simulator for OpenSolaris
dauphing
parents:
diff changeset
    81
      */