(__hpux): Add this to #if for using times().

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@210 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-03-27 14:35:27 +00:00
parent b4a0eaea5a
commit ae60bf19b0

View file

@ -30,7 +30,7 @@
#include <ucbinclude/sys/resource.h>
#endif
#if (sun && __svr4__) /* solaris */
#if (sun && __svr4__) || (__hpux)
#include <sys/times.h>
#endif
@ -95,7 +95,7 @@ id monthNames;
+ (long) millisecondsToRun: (void(*)())aFunc
{
#if (sun && __svr4__)
#if (sun && __svr4__) || (__hpux)
/* As of Solaris 2.4, getrusage is not supported with the system libraries
or with multi-threaded applications. Thus, we use the times() call
instead. */
@ -124,14 +124,14 @@ id monthNames;
+ getSeconds: (long *)sec microseconds: (long *)usec toRun: (void(*)())aFunc
{
#if (sun && __svr4__) /* solaris */
#if (sun && __svr4__) || (__hpux)
struct tms start_tms, end_tms;
#else
struct rusage start_ru, end_ru;
#endif /* solaris */
[self notImplemented:_cmd];
#if (sun && __svr4__) /* solaris */
#if (sun && __svr4__) || (__hpux)
times(&start_tms);
(*aFunc)();
times(&end_tms);