diff options
author | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2019-11-10 13:11:19 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-11-24 14:33:18 -0500 |
commit | 6008206a9e050ed0e3db1f09e0b2a641420d4ffd (patch) | |
tree | 5930e65e9689b99bac80df1ba486ccabd7823073 | |
parent | 7b4c7b75be351e9b6a40093cbccab728dd89064f (diff) | |
download | haskell-6008206a9e050ed0e3db1f09e0b2a641420d4ffd.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 3c9d36cb88..cdf39ea041 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 |