pkgsrc/games/supertuxkart/patches/patch-aa
2010-12-17 09:26:23 +00:00

16 lines
624 B
Text

$NetBSD: patch-aa,v 1.2 2010/12/17 09:26:23 wiz Exp $
No alloca.h header on NetBSD.
https://sourceforge.net/tracker/?func=detail&aid=3138977&group_id=202302&atid=981038
--- src/bullet/src/BulletDynamics/ConstraintSolver/btOdeQuickstepConstraintSolver.cpp.orig 2009-10-16 00:43:55.000000000 +0000
+++ src/bullet/src/BulletDynamics/ConstraintSolver/btOdeQuickstepConstraintSolver.cpp
@@ -45,7 +45,7 @@ subject to the following restrictions:
#if defined (WIN32)
#include <malloc.h>
#else
-#if defined (__FreeBSD__)
+#if defined (__FreeBSD__) || defined(__NetBSD__)
#include <stdlib.h>
#else
#include <alloca.h>