[Git][ghc/ghc][master] base: Enable large file support for OFD locking impl.

Marge Bot gitlab at gitlab.haskell.org
Wed Apr 15 03:29:59 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
9853fc5e by Ben Gamari at 2020-04-14T23:29:48-04:00
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.

- - - - -


1 changed file:

- libraries/base/GHC/IO/Handle/Lock/LinuxOFD.hsc


Changes:

=====================================
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>
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9853fc5e3556e733b56976b0a2fce9e82130a9ef

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/9853fc5e3556e733b56976b0a2fce9e82130a9ef
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200414/646c3af0/attachment.html>


More information about the ghc-commits mailing list