Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix broken ghc port, and add a patch to make it work on Sierra.
- Loading branch information
1 parent
b385383
commit d7385a7
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- rts/posix/GetTime.c.orig 2017-02-15 08:41:47.000000000 +0100 | ||
+++ rts/posix/GetTime.c 2017-02-15 08:43:42.000000000 +0100 | ||
@@ -25,6 +25,10 @@ | ||
# include <papi.h> | ||
#endif | ||
|
||
+#ifdef darwin_HOST_OS | ||
+#include <mach/mach_time.h> | ||
+#endif | ||
+ | ||
#if ! ((defined(HAVE_GETRUSAGE) && !irix_HOST_OS) || defined(HAVE_TIMES)) | ||
#error No implementation for getProcessCPUTime() available. | ||
#endif |