diff --git a/torcs-1.3.7-isnan.patch b/torcs-1.3.7-isnan.patch new file mode 100644 index 0000000..3d45aa3 --- /dev/null +++ b/torcs-1.3.7-isnan.patch @@ -0,0 +1,12 @@ +diff -up torcs-1.3.7/src/drivers/olethros/geometry.cpp.orig torcs-1.3.7/src/drivers/olethros/geometry.cpp +--- torcs-1.3.7/src/drivers/olethros/geometry.cpp.orig 2016-06-07 19:49:11.347896827 +0100 ++++ torcs-1.3.7/src/drivers/olethros/geometry.cpp 2016-06-07 19:49:46.532894257 +0100 +@@ -27,6 +27,8 @@ + #ifdef WIN32 + #include + #define isnan _isnan ++#else ++#define isnan std::isnan + #endif + + diff --git a/torcs.spec b/torcs.spec index 5fc5a53..3ccb24b 100644 --- a/torcs.spec +++ b/torcs.spec @@ -6,6 +6,7 @@ Summary: The Open Racing Car Simulator License: GPLv2+ URL: http://torcs.org/ Source0: http://downloads.sf.net/torcs/torcs-%{version}.tar.bz2 +Patch0: torcs-1.3.7-isnan.patch BuildRequires: desktop-file-utils BuildRequires: freealut-devel @@ -35,6 +36,8 @@ yourself with either a wheel, keyboard or mouse. %prep %setup -q +%patch0 -p1 + # Prevent useless executable files in the debuginfo package (as of 1.3.1) chmod -x src/libs/learning/policy.*