pkgsrc/lang/ghc810/patches/patch-libraries_unix_System_Posix_Signals.hsc
ryoon 3d49c90572 lang/ghc810: import ghc-8.10.4
GHC: The Glasgow Haskell Compiler.

The Glasgow Haskell Compiler is a robust, fully-featured, optimising
compiler for the functional programming language Haskell 98
(http://www.haskell.org). GHC compiles Haskell to either native code
or C. It implements numerous experimental language extensions to
Haskell, including concurrency, a foreign language interface, several
type-system extensions, exceptions, and so on. GHC comes with a
generational garbage collector, a space and time profiler, and a
comprehensive set of libraries.

This package provides the 8.10.x release series.
2021-02-09 13:16:24 +00:00

22 lines
888 B
Haskell

$NetBSD: patch-libraries_unix_System_Posix_Signals.hsc,v 1.1 2021/02/09 13:16:24 ryoon Exp $
Suppress linker warnings about compatibility symbols.
--- libraries/unix/System/Posix/Signals.hsc.orig 2016-04-20 10:08:26.000000000 +0000
+++ libraries/unix/System/Posix/Signals.hsc
@@ -590,7 +590,7 @@ awaitSignal maybe_sigset = do
-- XXX My manpage says it can also return EFAULT. And why is ignoring
-- EINTR the right thing to do?
-foreign import ccall unsafe "sigsuspend"
+foreign import capi unsafe "signal.h sigsuspend"
c_sigsuspend :: Ptr CSigset -> IO CInt
#if defined(darwin_HOST_OS) && __GLASGOW_HASKELL__ < 706
@@ -615,5 +615,5 @@ foreign import capi unsafe "signal.h sig
c_sigismember :: Ptr CSigset -> CInt -> IO CInt
#endif
-foreign import ccall unsafe "sigpending"
+foreign import capi unsafe "signal.h sigpending"
c_sigpending :: Ptr CSigset -> IO CInt