[commit: ghc] master: test for HAVE_CLOCK_GETTIME definedness (4a1eed4)

git at git.haskell.org git at git.haskell.org
Wed Apr 5 15:38:50 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4a1eed40bec08d50634b9754448ae34666e71fb2/ghc

>---------------------------------------------------------------

commit 4a1eed40bec08d50634b9754448ae34666e71fb2
Author: Gabor Greif <ggreif at gmail.com>
Date:   Wed Apr 5 17:37:53 2017 +0200

    test for HAVE_CLOCK_GETTIME definedness


>---------------------------------------------------------------

4a1eed40bec08d50634b9754448ae34666e71fb2
 libraries/base/include/HsBase.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/base/include/HsBase.h b/libraries/base/include/HsBase.h
index cfe0464..cbbccbf 100644
--- a/libraries/base/include/HsBase.h
+++ b/libraries/base/include/HsBase.h
@@ -100,7 +100,7 @@
 #elif HAVE_STDINT_H
 # include <stdint.h>
 #endif
-#if HAVE_CLOCK_GETTIME
+#ifdef HAVE_CLOCK_GETTIME
 # ifdef _POSIX_MONOTONIC_CLOCK
 #  define CLOCK_ID CLOCK_MONOTONIC
 # else



More information about the ghc-commits mailing list