Skip to content
  • Shea Levy's avatar
    Don't use mmap symbols when !RTS_LINKER_USE_MMAP · a637eeb7
    Shea Levy authored and Ben Gamari's avatar Ben Gamari committed
    Some usages of symbols from sys/mman.h are guarded by
    RTS_LINKER_USE_MMAP by C conditionals, not CPP conditionals. Since those
    branches are dead anyway when !RTS_LINKER_USE_MMAP, we just stub out the
    relevant symbols rather than increasing CPP branching.
    
    Fixes #12839.
    
    Reviewers: simonmar, austin, bgamari, erikd
    
    Reviewed By: simonmar, bgamari, erikd
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2710
    
    GHC Trac Issues: #12839
    a637eeb7