diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-11-21 11:08:44 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-12-02 11:56:54 -0500 |
commit | f1f688244d7a766a2b71fbe172c86e3cb4c87539 (patch) | |
tree | 01b887b047db567b8722436e92654f1b84993f40 | |
parent | d402209ace97212b59ad6f9d7cdd1e1bb15fc425 (diff) | |
download | haskell-f1f688244d7a766a2b71fbe172c86e3cb4c87539.tar.gz |
base: Fix <unistd.h> #include
Previously we were including <sys/unistd.h> which is available on glibc
but not musl.
(cherry picked from commit e44b695ca7cb5f3f99eecfba05c9672c6a22205e)
-rw-r--r-- | libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc b/libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc index 1046fa9351..5e4e642009 100644 --- a/libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc +++ b/libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc @@ -12,8 +12,8 @@ module GHC.IO.Handle.Lock.LinuxOFD where import GHC.Base () -- Make implicit dependency known to build system #else -#include <sys/unistd.h> -#include <sys/fcntl.h> +#include <unistd.h> +#include <fcntl.h> import Data.Function import Data.Functor |