diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-03-23 14:55:14 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-04-14 23:29:48 -0400 |
commit | 9853fc5e3556e733b56976b0a2fce9e82130a9ef (patch) | |
tree | f1bac0694b20f9da5a042a2a6961452cd7442c1e | |
parent | 27cc2e7b1c1268e59c9d16b4530f27c0d40e9464 (diff) | |
download | haskell-9853fc5e3556e733b56976b0a2fce9e82130a9ef.tar.gz |
base: Enable large file support for OFD locking impl.
Not only is this a good idea in general but this should also avoid
issue #17950 by ensuring that off_t is 64-bits.
-rw-r--r-- | libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc b/libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc index 5e4e642009..826656c936 100644 --- a/libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc +++ b/libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc @@ -12,6 +12,9 @@ module GHC.IO.Handle.Lock.LinuxOFD where import GHC.Base () -- Make implicit dependency known to build system #else +-- Not only is this a good idea but it also works around #17950. +#define _FILE_OFFSET_BITS 64 + #include <unistd.h> #include <fcntl.h> |