pkgsrc/graphics/vtk/patches/patch-ag
2007-07-30 09:51:03 +00:00

46 lines
1,016 B
Text

$NetBSD: patch-ag,v 1.1 2007/07/30 09:51:03 joerg Exp $
--- Hybrid/vtkVRMLImporter.cxx.orig 2007-07-30 08:46:08.000000000 +0000
+++ Hybrid/vtkVRMLImporter.cxx
@@ -59,6 +59,8 @@
#include "vtkTransform.h"
#include "vtkVRML.h"
+#include <stdlib.h>
+
#ifdef WIN32
#pragma warning( disable : 4005 )
#endif
@@ -491,10 +493,6 @@ VrmlNodeType::has(const vtkVRMLVectorTyp
#define YYDEBUG 1
-#ifndef __APPLE__
-#include <malloc.h>
-#endif
-
#ifdef USE_STD_NAMESPACE
using namespace std;
#endif
@@ -4174,21 +4172,6 @@ int yywrap() { BEGIN INITIAL; return 1;
* section 1.
*/
-#ifdef YY_MALLOC_DECL
-YY_MALLOC_DECL
-#else
-#if __STDC__
-#ifndef __cplusplus
-#include <stdlib.h>
-#endif
-#else
-/* Just try to get by without declaring the routines. This will fail
- * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
- * or sizeof(void*) != sizeof(int).
- */
-#endif
-#endif
-
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192