Skip to content

Commit b3b49c3

Browse files
committed
GNU/Hurd: Add getExecutablePath support
1 parent 7da2987 commit b3b49c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cabal-install/src/Distribution/Client/Compat/ExecutablePath.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import Foreign.Marshal.Alloc
1919
import Foreign.Ptr
2020
import Foreign.Storable
2121
import System.Posix.Internals
22-
#elif defined(linux_HOST_OS)
22+
#elif defined(linux_HOST_OS) || defined(gnu_HOST_OS)
2323
import Foreign.C
2424
import Foreign.Marshal.Array
2525
import System.Posix.Internals
@@ -96,7 +96,7 @@ getExecutablePath = _NSGetExecutablePath >>= realpath
9696
--------------------------------------------------------------------------------
9797
-- Linux
9898

99-
#elif defined(linux_HOST_OS)
99+
#elif defined(linux_HOST_OS) || defined(gnu_HOST_OS)
100100

101101
foreign import ccall unsafe "readlink"
102102
c_readlink :: CString -> CString -> CSize -> IO CInt

0 commit comments

Comments
 (0)