summaryrefslogtreecommitdiff
path: root/lang/ghc88/patches/patch-libraries_unix_System_Posix_Env.hsc
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ghc88/patches/patch-libraries_unix_System_Posix_Env.hsc')
-rw-r--r--lang/ghc88/patches/patch-libraries_unix_System_Posix_Env.hsc16
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/ghc88/patches/patch-libraries_unix_System_Posix_Env.hsc b/lang/ghc88/patches/patch-libraries_unix_System_Posix_Env.hsc
new file mode 100644
index 00000000000..d534d84523e
--- /dev/null
+++ b/lang/ghc88/patches/patch-libraries_unix_System_Posix_Env.hsc
@@ -0,0 +1,16 @@
+$NetBSD: patch-libraries_unix_System_Posix_Env.hsc,v 1.1 2020/01/09 12:32:24 pho Exp $
+
+Suppress linker warnings about compatibility symbols by using "capi"
+instead of "ccall".
+
+--- libraries/unix/System/Posix/Env.hsc.orig 2016-11-17 22:08:50.000000000 +0000
++++ libraries/unix/System/Posix/Env.hsc
+@@ -156,7 +156,7 @@ putEnv keyvalue = do s <- newFilePath ke
+ newFilePath fp = getFileSystemEncoding >>= \enc -> GHC.newCString enc fp
+ #endif
+
+-foreign import ccall unsafe "putenv"
++foreign import capi unsafe "stdlib.h putenv"
+ c_putenv :: CString -> IO CInt
+
+ {- |The 'setEnv' function inserts or resets the environment variable name in