Browse Source

use 64-bit clean i/o under Linux

Joseph Lee 19 years ago
parent
commit
07c9d292c4
2 changed files with 6 additions and 0 deletions
  1. 3 0
      dtool/Config.Linux.pp
  2. 3 0
      dtool/LocalSetup.pp

+ 3 - 0
dtool/Config.Linux.pp

@@ -133,6 +133,9 @@
 // Do we have RTTI (and <typeinfo>)?
 // Do we have RTTI (and <typeinfo>)?
 #define HAVE_RTTI 1
 #define HAVE_RTTI 1
 
 
+// We need 64-bit file i/o
+#define __USE_LARGEFILE64 1
+
 // Must global operator new and delete functions throw exceptions?
 // Must global operator new and delete functions throw exceptions?
 #define GLOBAL_OPERATOR_NEW_EXCEPTIONS 1
 #define GLOBAL_OPERATOR_NEW_EXCEPTIONS 1
 
 

+ 3 - 0
dtool/LocalSetup.pp

@@ -468,6 +468,9 @@ $[cdefine HAVE_LINUX_NATIVE_THREADS]
 /* Is the code being compiled with the Tau profiler's instrumentor? */
 /* Is the code being compiled with the Tau profiler's instrumentor? */
 $[cdefine USE_TAU]
 $[cdefine USE_TAU]
 
 
+/* Define if needed to have 64-bit file i/o */
+$[cdefine __USE_LARGEFILE64]
+
 /* Must global operator new and delete functions throw exceptions? */
 /* Must global operator new and delete functions throw exceptions? */
 $[cdefine GLOBAL_OPERATOR_NEW_EXCEPTIONS]
 $[cdefine GLOBAL_OPERATOR_NEW_EXCEPTIONS]