This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH (libstdc++-v3): Port testsuite/testsuite_performance.h
- From: Andreas Tobler <andreast at gcc dot gnu dot org>
- To: rittle at labs dot mot dot com
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Tue, 24 Jun 2003 20:13:27 +0200
- Subject: Re: PATCH (libstdc++-v3): Port testsuite/testsuite_performance.h
- References: <200306240642.h5O6gJ2Q010301@latour.rsch.comm.mot.com>
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