diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-02-15 11:13:26 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-02-15 11:14:37 -0400 |
commit | 96e893d718dc6bad7b2abdefce886694f986c367 (patch) | |
tree | e74e9cd0916b02c418d7eb78a1569f3ea94809fa /Utility/Mounts.hs | |
parent | 6ab78795eaa25bb0e42daf7980df2d30f397665c (diff) |
remove Utility.Mounts et al; moved to mountpoints package
Diffstat (limited to 'Utility/Mounts.hs')
-rw-r--r-- | Utility/Mounts.hs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Utility/Mounts.hs b/Utility/Mounts.hs new file mode 100644 index 000000000..192da31a1 --- /dev/null +++ b/Utility/Mounts.hs @@ -0,0 +1,21 @@ +{- portability shim for System.MountPoints + - + - Copyright 2016 Joey Hess <id@joeyh.name> + - + - License: BSD-2-clause + -} + +{-# LANGUAGE CPP #-} +{-# OPTIONS_GHC -fno-warn-tabs #-} + +module Utility.Mounts (getMounts, Mntent(..)) where + +import qualified System.MountPoints +import System.MountPoints (Mntent(..)) + +getMounts :: IO [Mntent] +#ifndef __ANDROID__ +getMounts = System.MountPoints.getMounts +#else +getMounts = System.MountPoints.getProcMounts +#endif |