summaryrefslogtreecommitdiffstats
path: root/graphics/inventor/files/patch-SoV1NkCatalog.c++
blob: 2a4d8d871f30bbf170c2f4f7699d6c57019fcc51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- lib/nodekits/src/upgraders/SoV1NkCatalog.c++.orig	2001-09-25 02:45:47.000000000 +0200
+++ lib/nodekits/src/upgraders/SoV1NkCatalog.c++	2011-06-08 14:38:38.000000000 +0200
@@ -51,6 +51,9 @@
  _______________________________________________________________________
  */
 
+#ifdef __FreeBSD__
+#include <stdlib.h>
+#endif
 
 #include <Inventor/misc/upgraders/SoV1NodekitCatalog.h>
 #include <Inventor/SoDB.h>
@@ -330,7 +333,7 @@
     void *castPNum;
 
     if ( partNameDict.find( (unsigned long) theName.getString(), castPNum ) )
-#if (_MIPS_SZPTR == 64 || __ia64)
+#if (_MIPS_SZPTR == 64 || __ia64 || __amd64__)
 	return ( (int) ((long) castPNum) );  // System long
 #else
 	return ( (int) castPNum );
OpenPOWER on IntegriCloud