summaryrefslogtreecommitdiff
path: root/user/torcs/define-uint.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-24 01:15:24 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-24 01:15:24 +0000
commit6fb1b6516a1493d708b0cbad120d6a2bf1251b05 (patch)
tree73ed5401526559f7f38d8ccc28066904b4e4f834 /user/torcs/define-uint.patch
parent35d3464218da6f5ae5025fec65dd1caa08d31824 (diff)
downloadpackages-6fb1b6516a1493d708b0cbad120d6a2bf1251b05.tar.gz
packages-6fb1b6516a1493d708b0cbad120d6a2bf1251b05.tar.bz2
packages-6fb1b6516a1493d708b0cbad120d6a2bf1251b05.tar.xz
packages-6fb1b6516a1493d708b0cbad120d6a2bf1251b05.zip
user/torcs: new buggy package
Diffstat (limited to 'user/torcs/define-uint.patch')
-rw-r--r--user/torcs/define-uint.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/user/torcs/define-uint.patch b/user/torcs/define-uint.patch
new file mode 100644
index 000000000..74e3f7773
--- /dev/null
+++ b/user/torcs/define-uint.patch
@@ -0,0 +1,24 @@
+--- torcs-1.3.7/src/linux/osspec.h.old 2003-03-23 19:43:13.000000000 +0000
++++ torcs-1.3.7/src/linux/osspec.h 2018-10-23 22:59:19.520000000 +0000
+@@ -26,6 +26,10 @@
+ #define TRKEXT "xml"
+ #define PARAMEXT ".xml"
+
++#ifndef __GLIBC__
++typedef unsigned int uint;
++#endif
++
+ #endif /* __OSSPEC__H__ */
+
+
+--- torcs-1.3.7/src/modules/simu/simuv2/SOLID-2.0/src/C-api.cpp.old 2012-05-31 23:44:35.000000000 +0000
++++ torcs-1.3.7/src/modules/simu/simuv2/SOLID-2.0/src/C-api.cpp 2018-10-23 23:04:24.590000000 +0000
+@@ -59,7 +59,7 @@
+ typedef map<DtObjectRef, Object *> ObjectList;
+ typedef set<Encounter> ProxList;
+
+-#ifdef WIN32
++#if defined(WIN32) || (defined(__linux__) && !defined(__GLIBC__))
+ #define uint unsigned int
+ #endif
+