This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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







Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]