PATCH (libstdc++-v3): Port testsuite/testsuite_performance.h

Andreas Tobler andreast@gcc.gnu.org
Tue Jun 24 18:58:00 GMT 2003


And here the frineds from darwin :)

Could we extend it this way? Below. At least it compiles.
Linking is another story.....

Further I fight with the --rpath option which is not existing under 
darwin. I just saw, that usually libtool takes care of this....

Andreas




diff -u -r1.3 testsuite_performance.h
--- testsuite_performance.h     24 Jun 2003 06:41:38 -0000      1.3
+++ testsuite_performance.h     24 Jun 2003 18:09:53 -0000
@@ -33,7 +33,7 @@

  #include <sys/times.h>
  #include <sys/resource.h>
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__APPLE__) && defined(__MACH__)
  #include <stdlib.h>
  #else
  #include <malloc.h>
@@ -85,7 +85,7 @@
      { return tms_end.tms_stime - tms_begin.tms_stime; }
    };

-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__APPLE__) && defined(__MACH__)
    struct mallinfo { int arena; };
    int mallinfo (void) { return 0; }
  #endif








More information about the Libstdc++ mailing list