pkgsrc/lang/ghc88/patches/patch-libraries_base_GHC_Event_KQueue.hsc
pho 267acd1423 Import GHC 8.8.1
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.8.x release series.
2020-01-09 12:32:24 +00:00

16 lines
697 B
Haskell

$NetBSD: patch-libraries_base_GHC_Event_KQueue.hsc,v 1.1 2020/01/09 12:32:24 pho Exp $
Suppress linker warnings about compatibility syscall wrappers by using
"capi" instead of "ccall".
--- libraries/base/GHC/Event/KQueue.hsc.orig 2019-12-26 18:05:56.276488590 +0000
+++ libraries/base/GHC/Event/KQueue.hsc
@@ -284,7 +284,7 @@ foreign import capi safe "sys/event.h ke
c_kevent :: KQueueFd -> Ptr Event -> CInt -> Ptr Event -> CInt
-> Ptr TimeSpec -> IO CInt
-foreign import ccall unsafe "kevent"
+foreign import capi unsafe "sys/event.h kevent"
c_kevent_unsafe :: KQueueFd -> Ptr Event -> CInt -> Ptr Event -> CInt
-> Ptr TimeSpec -> IO CInt
#else