Update of /cvsroot/monetdb/MonetDB
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11214

Modified Files:
      Tag: MonetDB_1-22
        configure.ag 
Log Message:
Changed the way we check for and use mallinfo(): If mallinfo() returns
a struct with fields which are too small to hold the information it is
supposed to return (e.g. 32 bits on a 64-bit system), we ignore
mallinfo().  Also, we use our own struct to hold the information, so
that the rest of the software can rely on bot the presence of the
struct and the types of the fields.  

This also results in one interface change: the view_gdk_memory() and
memory() functions in M4 and the memStatistics() function in M5 now
return a BAT with a wrd tail instead of int.


Index: configure.ag
===================================================================
RCS file: /cvsroot/monetdb/MonetDB/configure.ag,v
retrieving revision 1.188.2.1
retrieving revision 1.188.2.2
diff -u -d -r1.188.2.1 -r1.188.2.2
--- configure.ag        3 Feb 2008 12:17:22 -0000       1.188.2.1
+++ configure.ag        12 Feb 2008 09:23:30 -0000      1.188.2.2
@@ -88,14 +88,6 @@
        AC_COMPILE_IFELSE(AC_LANG_SOURCE([int foo(int * __restrict__ p) { 
return *p; }]),
                AC_DEFINE(HAVE___RESTRICT__, 1,
                        [Define if the compiler supports the __restrict__ 
keyword])))
-AC_TRY_COMPILE([$ac_includes_default
-#include <malloc.h>], [struct mallinfo m;], AC_DEFINE(HAVE_STRUCT_MALLINFO, 1, 
[Define if you have struct mallinfo])
-AC_TRY_COMPILE([$ac_includes_default
-#include <malloc.h>], [struct mallinfo m = {0};
-/* compilers that don't like <0 comparisons on unsigned data *
- * will fail here (but then not in src/gdk/gdk_utils.mx)     */
-int x = (m.usmblks < 0);], AC_DEFINE(HAVE_SIGNED_MALLINFO, 1, [Define if your 
mallinfo struct has signed elements])
-))
 
 # Checks for library functions.
 AC_FUNC_MEMCMP


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to