diff --git a/Text/Regex/Posix/Wrap.hsc b/Text/Regex/Posix/Wrap.hsc
--- a/Text/Regex/Posix/Wrap.hsc
+++ b/Text/Regex/Posix/Wrap.hsc
@@ -88,6 +88,7 @@
 
 #include <sys/types.h>
 
+#define _POSIX_C_SOURCE 1
 #if HAVE_REGEX_H && HAVE_REGCOMP
 #include "regex.h"
 #else
diff --git a/regex-posix.cabal b/regex-posix.cabal
--- a/regex-posix.cabal
+++ b/regex-posix.cabal
@@ -1,7 +1,8 @@
 Name:                   regex-posix
 -- Keep the Version below in sync with ./Text/Regex/Posix.hs value getVersion_Text_Regex_Posix :: Version
-Version:                0.93.1
+Version:                0.93.2
 Cabal-Version:          >=1.2
+Build-Type:             Custom
 License:                BSD3
 License-File:           LICENSE
 Copyright:              Copyright (c) 2007, Christopher Kuklewicz
@@ -54,6 +55,6 @@
   -- Frameworks:
   CC-Options:             -DHAVE_REGEX_H
   -- Includes:
-  Include-Dirs:           include
+  -- Include-Dirs:           include
   -- Extra-Libraries:
   -- Extra-Lib-Dirs:
