This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH (libstdc++-v3): Port testsuite/testsuite_performance.h
- From: Gerald Pfeifer <pfeifer at dbai dot tuwien dot ac dot at>
- To: Loren James Rittle <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 12:04:57 +0200 (CEST)
- Subject: Re: PATCH (libstdc++-v3): Port testsuite/testsuite_performance.h
- References: <200306240642.h5O6gJ2Q010301@latour.rsch.comm.mot.com>
On Tue, 24 Jun 2003, Loren James Rittle wrote:
> Index: libstdc++-v3/testsuite/testsuite_performance.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/testsuite_performance.h,v
> retrieving revision 1.2
> diff -c -r1.2 testsuite_performance.h
> *** libstdc++-v3/testsuite/testsuite_performance.h 20 Jun 2003 15:26:23 -0000 1.2
> --- libstdc++-v3/testsuite/testsuite_performance.h 24 Jun 2003 06:35:55 -0000
> ***************
> *** 33,39 ****
> --- 33,43 ----
>
> #include <sys/times.h>
> #include <sys/resource.h>
> + #ifdef __FreeBSD__
> + #include <stdlib.h>
> + #else
> #include <malloc.h>
> + #endif
I have been told some modern GNU/Linux distributions finally got rid of
that silly <malloc.h> (which was non-standard and warned about by Borland
C++ already more than 10 years ago) as well, so wouldn't an autoconf test
be better?
Gerald
--
Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.pfeifer.com/gerald/