X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FRtsUtils.c;h=c35d038c56668e087995fe28747483618b4aeab5;hb=db27f931017d98e4927f5638726f85368396d5a1;hp=2b929c9dfb374be5794a12dba35e8b7c9a1a7dee;hpb=dd4c28a9c706cce09ecc2c6f532969efa925532f;p=ghc-hetmet.git diff --git a/ghc/rts/RtsUtils.c b/ghc/rts/RtsUtils.c index 2b929c9..c35d038 100644 --- a/ghc/rts/RtsUtils.c +++ b/ghc/rts/RtsUtils.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: RtsUtils.c,v 1.14 2000/03/31 03:09:36 hwloidl Exp $ + * $Id: RtsUtils.c,v 1.16 2000/05/24 11:01:07 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -7,6 +7,9 @@ * * ---------------------------------------------------------------------------*/ +/* gettimeofday isn't POSIX */ +#define NON_POSIX_SOURCE + #include "Rts.h" #include "RtsTypes.h" #include "RtsAPI.h" @@ -230,7 +233,7 @@ static ullong startTime = 0; ullong msTime(void) { -# if defined(HAVE_GETCLOCK) && !defined(alpha_TARGET_ARCH) +# if defined(HAVE_GETCLOCK) && !defined(alpha_TARGET_ARCH) && !defined(hppa1_1_TARGET_ARCH) struct timespec tv; if (getclock(TIMEOFDAY, &tv) != 0) {