diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-03-23 14:55:14 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-03-23 14:56:10 -0400 |
commit | 16cdad330e2760210aec3582fdcbe518ecba84b9 (patch) | |
tree | 999da055961969f98887f61145aa5802d2c95b8a | |
parent | abc02b4036c2d8efe50b720d8c8103c4f1b8899a (diff) | |
download | haskell-wip/T17950.tar.gz |
base: Enable large file support for OFD locking impl.wip/T17950
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> |