pkgsrc/games/openrct2/patches/patch-src_openrct2_platform_Linux.cpp
nia 950edd39e4 Add games/openrct2.
OpenRCT2 is an open source reimplementation of the game engine used by
RollerCoaster Tycoon 2 (RCT2).

The gameplay revolves around building and maintaining an amusement park
containing attractions, shops and facilities. The player must try to make
a profit and maintain a good park reputation whilst keeping the guests happy.

OpenRCT2 allows for both scenario and sandbox play. Scenarios require the
player to complete a certain objective in a set time limit whilst sandbox
allows the player to build a more flexible park with optionally no restrictions
or finance.

OpenRCT2 requires a copy of RollerCoaster Tycoon 2 to play.
2019-11-17 16:19:57 +00:00

15 lines
696 B
C++

$NetBSD: patch-src_openrct2_platform_Linux.cpp,v 1.1 2019/11/17 16:19:57 nia Exp $
Support NetBSD.
--- src/openrct2/platform/Linux.cpp.orig 2019-10-28 20:18:47.000000000 +0000
+++ src/openrct2/platform/Linux.cpp
@@ -11,7 +11,7 @@
// Despite the name, this file contains support for more OSs besides Linux, provided the necessary ifdefs remain small.
// Otherwise, they should be spun off into their own files.
-#if (defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && !defined(__ANDROID__)
+#if (defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) && !defined(__ANDROID__)
# ifdef __FreeBSD__
# include <sys/sysctl.h>