[Git][ghc/ghc][master] Fix build with werror on glibc 2.43.
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC Commits: 7b9a75f0 by Phil Hazelden at 2026-03-26T03:58:37-04:00 Fix build with werror on glibc 2.43. We've been defining `_XOPEN_SOURCE` and `_POSIX_C_SOURCE` to the same values as defined in glibc prior to 2.43. But in 2.43, glibc changes them to new values, which means we get a warning when redefining them. By `#undef`ing them first, we no longer get a warning. Closes #27076. - - - - - 1 changed file: - rts/include/rts/PosixSource.h Changes: ===================================== rts/include/rts/PosixSource.h ===================================== @@ -29,6 +29,8 @@ Oracle's Solaris 11 supports only up to XPG6, hence the ifdef. */ +#undef _POSIX_C_SOURCE +#undef _XOPEN_SOURCE #if defined(solaris2_HOST_OS) #define _POSIX_C_SOURCE 200112L #define _XOPEN_SOURCE 600 View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7b9a75f09a0a8d11d843f43e8e938b66... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7b9a75f09a0a8d11d843f43e8e938b66... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Marge Bot (@marge-bot)