From 5683f47f48fad9a9cf8df9991f7532ef8d21bf71 Mon Sep 17 00:00:00 2001
From: sof <unknown>
Date: Thu, 30 Oct 1997 22:32:03 +0000
Subject: [PATCH] [project @ 1997-10-30 22:32:03 by sof] Cosmetic fix to avoid
 cpp warnings under linux

---
 ghc/runtime/gmp/gmp-impl.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ghc/runtime/gmp/gmp-impl.h b/ghc/runtime/gmp/gmp-impl.h
index e02691f926c8..d42c715859a1 100644
--- a/ghc/runtime/gmp/gmp-impl.h
+++ b/ghc/runtime/gmp/gmp-impl.h
@@ -37,7 +37,12 @@ void *alloca();
 
 #include "gmp-mparam.h"
 
-#ifdef __STDC__
+/* 
+ Cosmetic, but when running mkdependC on this under linux-2.x,
+ we're warned about redefinition of signed (done in sys/cdefs.h).
+ To avoid this wibble, we've weakened the #if below.
+ */
+#if  defined(__STDC__) || defined(__linux__)
 void *malloc (size_t);
 void *realloc (void *, size_t);
 void free (void *);
-- 
GitLab