Annotation of pkgsrc/games/doomlegacy/patches/patch-src_sdl_i__system.c, Revision 1.1
1.1 ! micha 1: $NetBSD$
! 2:
! 3: Use statvfs(5) for NetBSD.
! 4:
! 5: --- src/sdl/i_system.c.orig 2017-03-03 20:22:35.000000000 +0000
! 6: +++ src/sdl/i_system.c
! 7: @@ -74,7 +74,7 @@
! 8: // meminfo
! 9: # include <sys/types.h>
! 10: # include <sys/sysctl.h>
! 11: -# elif defined( __MACH__ )
! 12: +# elif defined( __MACH__ ) || defined( NETBSD )
! 13: # include <sys/statvfs.h>
! 14: # else
! 15: # include <sys/vfs.h>
! 16: @@ -861,7 +861,7 @@ uint64_t I_GetDiskFreeSpace(void)
! 17: # ifdef SOLARIS
! 18: goto guess;
! 19:
! 20: -# elif defined( __MACH__ )
! 21: +# elif defined( __MACH__ ) || defined( NETBSD )
! 22: struct statvfs stfs;
! 23: if (statvfs(".", &stfs) == -1)
! 24: goto guess;
CVSweb <webmaster@jp.NetBSD.org>