head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.6 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.4 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.2 pkgsrc-2025Q3-base:1.1; locks; strict; comment @# @; 1.1 date 2025.07.10.14.07.33; author jperkin; state Exp; branches; next ; commitid Enct0XLYxeOHQc2G; desc @@ 1.1 log @ghc910: Fix illumos GCC 14 build. @ text @$NetBSD$ Correct include for ioctl() on illumos. --- libraries/haskeline/System/Console/Haskeline/Backend/Posix.hsc.orig 2024-05-10 05:07:46.000000000 +0000 +++ libraries/haskeline/System/Console/Haskeline/Backend/Posix.hsc @@@@ -69,7 +69,11 @@@@ ehOut = eH . hOut posixLayouts :: Handles -> [IO (Maybe Layout)] posixLayouts _ = error "System.Console.Haskeline.Backend.Posix.posixLayouts" #else +#if defined(__illumos__) +foreign import capi "stropts.h ioctl" ioctl :: FD -> CULong -> Ptr a -> IO CInt +#else foreign import capi "sys/ioctl.h ioctl" ioctl :: FD -> CULong -> Ptr a -> IO CInt +#endif posixLayouts :: Handles -> [IO (Maybe Layout)] posixLayouts h = [ioctlLayout $ ehOut h, envLayout] @