diff options
author | B. Watson <yalhcru@gmail.com> | 2017-07-04 13:54:35 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-07-08 07:11:16 +0700 |
commit | 66c00df044aa06d9076020159ebb9811a05258c7 (patch) | |
tree | ee69d514caf7a2fd08eb3b26aaa387818d0ac493 /games/torcs/gcc7.diff | |
parent | 5cfdaa94ea6aee8456d376357f985441609fdfed (diff) |
games/torcs: Fix build on -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/torcs/gcc7.diff')
-rw-r--r-- | games/torcs/gcc7.diff | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/games/torcs/gcc7.diff b/games/torcs/gcc7.diff new file mode 100644 index 0000000000000..705e9abb1c07e --- /dev/null +++ b/games/torcs/gcc7.diff @@ -0,0 +1,12 @@ +diff -Naur torcs-1.3.7/src/drivers/olethros/geometry.cpp torcs-1.3.7.patched/src/drivers/olethros/geometry.cpp +--- torcs-1.3.7/src/drivers/olethros/geometry.cpp 2006-01-06 10:22:29.000000000 -0500 ++++ torcs-1.3.7.patched/src/drivers/olethros/geometry.cpp 2017-07-04 17:00:06.727000000 -0400 +@@ -27,6 +27,8 @@ + #ifdef WIN32 + #include <float.h> + #define isnan _isnan ++#else ++#define isnan std::isnan + #endif + + |