From 4a1eed40bec08d50634b9754448ae34666e71fb2 Mon Sep 17 00:00:00 2001
From: Gabor Greif <ggreif@gmail.com>
Date: Wed, 5 Apr 2017 17:37:53 +0200
Subject: [PATCH] test for HAVE_CLOCK_GETTIME definedness

---
 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 cfe046426d8..cbbccbf458e 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
-- 
GitLab