Skip to content
  • Shea Levy's avatar
    Define thread primitives if they're supported. · 1732d7ac
    Shea Levy authored and Ben Gamari's avatar Ben Gamari committed
    On iOS, we use the pthread-based implementation of Itimer.c even for a
    non-threaded RTS. Since 999c464d, this relies on synchronization
    primitives like Mutex, so ensure those primitives are defined whenever
    they are supported, even if !THREADED_RTS.
    
    Fixes #12799.
    
    Reviewers: erikd, austin, simonmar, bgamari
    
    Reviewed By: simonmar, bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2712
    
    GHC Trac Issues: #12799
    1732d7ac