[BACK]Return to patch-src_sdl_i__system.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / doomlegacy / patches

File: [cvs.NetBSD.org] / pkgsrc / games / doomlegacy / patches / patch-src_sdl_i__system.c (download)

Revision 1.1, Mon Jun 17 13:53:22 2019 UTC (5 months ago) by micha
Branch: MAIN
CVS Tags: pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, HEAD

games/doomlegacy: import doomlegacy-1.47.2

This is one of the most popular Doom source ports.
It enhances Doom with things like:
- Free Look
- OpenGL renderer
- Heretic support,
- TCP/IP networking
and much more.

Doom Legacy can play Doom, Boom, Marine's Best Friend (MBF), and Heretic maps.
In addition to the original games by id Software and Raven Software, there are
hundreds of free, fan-made maps available on the Internet. These maps are
typically distributed as PWAD files, which are not fully self-contained.
For each game you will also need the corresponding IWAD data file, which
contains all the graphics, wall and floor textures, sounds, and music for that
game. For example, if you want to play Doom II maps, you'll need the IWAD file
doom2.wad, or one of the free replacements.

Legacy has implemented the fundamental and de-facto-standard Boom extensions,
and the Marine's Best Friend (MBF) extensions. Legacy also has implemented
among other things 3D floors, swimmable water and other special effects using
extended linedef codes, and supports the FraggleScript scripting language.

This package contains the SDL build of Doom Legacy.

$NetBSD: patch-src_sdl_i__system.c,v 1.1 2019/06/17 13:53:22 micha Exp $

Use statvfs(5) for NetBSD.

--- src/sdl/i_system.c.orig	2017-03-03 20:22:35.000000000 +0000
+++ src/sdl/i_system.c
@@ -74,7 +74,7 @@
    // meminfo
 #  include <sys/types.h>
 #  include <sys/sysctl.h>
-# elif defined( __MACH__ )
+# elif defined( __MACH__ ) || defined( NETBSD )
 #  include <sys/statvfs.h>
 # else
 #  include <sys/vfs.h>
@@ -861,7 +861,7 @@ uint64_t I_GetDiskFreeSpace(void)
 # ifdef SOLARIS
   goto guess;
-# elif defined( __MACH__ )
+# elif defined( __MACH__ ) || defined( NETBSD )
   struct statvfs stfs;
   if (statvfs(".", &stfs) == -1)
     goto guess;