head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.10 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.8 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.6 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.4 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.2 pkgsrc-2025Q1-base:1.1; locks; strict; comment @# @; 1.1 date 2025.01.29.13.21.54; author pho; state Exp; branches; next ; commitid BioNou7xEmeVNnHF; desc @@ 1.1 log @lang/ghc910: import ghc-9.10.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 9.10.x release series. @ text @$NetBSD: patch-libraries_unix_System_Posix_User.hsc,v 1.1 2024/04/28 05:58:58 pho Exp $ Suppress linker warnings about compatibility symbols by using "capi" instead of "ccall". --- libraries/unix/System/Posix/User.hsc.orig 2023-10-23 10:26:54.941601450 +0000 +++ libraries/unix/System/Posix/User.hsc @@@@ -605,9 +605,9 @@@@ getAllUserEntries = lockpw GETALL $ brac else do thisentry <- unpackUserEntry ppw worker (thisentry : accum) -foreign import ccall safe "getpwent" c_getpwent :: IO (Ptr CPasswd) -foreign import ccall safe "setpwent" c_setpwent :: IO () -foreign import ccall safe "endpwent" c_endpwent :: IO () +foreign import capi safe "HsUnix.h getpwent" c_getpwent :: IO (Ptr CPasswd) +foreign import capi safe "HsUnix.h setpwent" c_setpwent :: IO () +foreign import capi safe "HsUnix.h endpwent" c_endpwent :: IO () #else {-# WARNING getAllUserEntries "System.Posix.User.getAllUserEntries: not supported" #-} getAllUserEntries = error "System.Posix.User.getAllUserEntries: not supported" @