X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=rts%2FRtsUtils.c;h=0123531e27ab3a8bdeed2607e852e065ae29898f;hp=c730d7aec4e97b82810b55ebc02cc746effcbb90;hb=842e9d6628a27cf1f420d53f6a5901935dc50c54;hpb=0dfcd5776f3ef89ceaafef6c4730ddac759e3716 diff --git a/rts/RtsUtils.c b/rts/RtsUtils.c index c730d7a..0123531 100644 --- a/rts/RtsUtils.c +++ b/rts/RtsUtils.c @@ -18,6 +18,13 @@ #include #endif +/* HACK: On Mac OS X 10.4 (at least), time.h doesn't declare ctime_r with + * _POSIX_C_SOURCE. If this is the case, we declare it ourselves. + */ +#if HAVE_CTIME_R && !HAVE_DECL_CTIME_R +extern char *ctime_r(const time_t *, char *); +#endif + #ifdef HAVE_FCNTL_H #include #endif