diff options
author | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2019-11-10 13:11:19 -0500 |
---|---|---|
committer | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2019-11-10 13:11:19 -0500 |
commit | dde5c06a9ac205b4edbff679c682a4ed0fedbc2e (patch) | |
tree | 22163402442a9d5eb587b4c8f4dc21ba731544b9 | |
parent | cf05e689cfe627b1fe9a637fa9d4424053906fea (diff) | |
download | haskell-dde5c06a9ac205b4edbff679c682a4ed0fedbc2e.tar.gz |
On FreeBSD 12 sys/sysctl.h requires sys/types.h
Else build fails with:
In file included from ExecutablePath.hsc:42:
/usr/include/sys/sysctl.h:1062:25: error: unknown type name 'u_int'; did you mean 'int'?
int sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
^~~~~
int
compiling libraries/base/dist-install/build/System/Environment/ExecutablePath_hsc_make.c failed (exit code 1)
Perhaps also also other FreeBSD releases, but additional include
will no harm even if not needed.
-rw-r--r-- | libraries/base/System/Environment/ExecutablePath.hsc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libraries/base/System/Environment/ExecutablePath.hsc b/libraries/base/System/Environment/ExecutablePath.hsc index 0e7c9fd454..33abff1327 100644 --- a/libraries/base/System/Environment/ExecutablePath.hsc +++ b/libraries/base/System/Environment/ExecutablePath.hsc @@ -39,6 +39,7 @@ import Foreign.Marshal.Array import Foreign.Ptr import Foreign.Storable import System.Posix.Internals +#include <sys/types.h> #include <sys/sysctl.h> #elif defined(mingw32_HOST_OS) import Control.Exception |