summaryrefslogtreecommitdiff
path: root/user/plib/fix-openflight.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/plib/fix-openflight.patch')
-rw-r--r--user/plib/fix-openflight.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/user/plib/fix-openflight.patch b/user/plib/fix-openflight.patch
new file mode 100644
index 000000000..7c69c1cd1
--- /dev/null
+++ b/user/plib/fix-openflight.patch
@@ -0,0 +1,25 @@
+--- plib-1.8.5/src/ssg/ssgLoadFLT.cxx.old 2008-03-11 02:06:23.000000000 +0000
++++ plib-1.8.5/src/ssg/ssgLoadFLT.cxx 2018-10-23 22:02:06.650000000 +0000
+@@ -103,9 +103,7 @@
+ #include <string.h>
+ #include <fcntl.h>
+ #include <stdio.h>
+-#ifdef UL_IRIX
+-# include <sys/endian.h>
+-#endif
++#include <endian.h>
+ #ifdef USE_POSIX_MMAP
+ # include <time.h>
+ # include <sys/time.h> /* Need both for Mandrake 8.0 !! */
+@@ -141,11 +139,8 @@
+ #define template _template /* trams */
+
+ typedef unsigned char ubyte;
+-
+-#ifdef UL_WIN32
+ typedef unsigned short ushort;
+ typedef unsigned int uint;
+-#endif
+
+ // 525 = negative identation, 539= did not expect positive identation
+ //lint -save -e525 -e539