diff --git a/System/Posix/Daemonize.hs b/System/Posix/Daemonize.hs
--- a/System/Posix/Daemonize.hs
+++ b/System/Posix/Daemonize.hs
@@ -289,7 +289,11 @@
 
 closeFileDescriptors :: IO ()
 closeFileDescriptors =
+#if MIN_VERSION_unix(2,8,0)
+    do null <- openFd "/dev/null" ReadWrite defaultFileFlags
+#else
     do null <- openFd "/dev/null" ReadWrite Nothing defaultFileFlags
+#endif
        let sendTo fd' fd = closeFd fd >> dupTo fd' fd
        mapM_ (sendTo null) [stdInput, stdOutput, stdError]
 
diff --git a/hdaemonize.cabal b/hdaemonize.cabal
--- a/hdaemonize.cabal
+++ b/hdaemonize.cabal
@@ -1,6 +1,6 @@
 Name:		hdaemonize
-Version:	0.5.6
-Cabal-Version:  >= 1.6
+Version:	0.5.7
+Cabal-Version:  >= 1.10
 License:	BSD3
 License-file:   LICENSE
 Author:         Anton Tayanovskyy, Fred Ross, Lana Black
@@ -16,7 +16,6 @@
                 handling, dropping privileges).
 Build-Type:	Simple
 Extra-Source-Files:	README.md
-Tested-With: GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.4, GHC == 8.6.5
 
 Library
   Build-Depends:    base >= 4 && < 5
@@ -26,6 +25,7 @@
                   , extensible-exceptions
                   , filepath
                   , mtl
+  Default-Language: Haskell2010
   Exposed-modules:      System.Posix.Daemonize
   if impl(ghc > 6.12)
       Ghc-Options:      -Wall -fno-warn-unused-do-bind -fno-warn-type-defaults -fno-warn-name-shadowing
