diff options
author | simonmar <unknown> | 2002-09-13 09:12:12 +0000 |
---|---|---|
committer | simonmar <unknown> | 2002-09-13 09:12:12 +0000 |
commit | 599742c6159e9a7c1e999118f98a68c1ac5e16b7 (patch) | |
tree | d0ab5def812154428c7a1ac76cb8685c9ede8a42 /System/Posix | |
parent | fb789a7a51ba183c2600711a5f771720930aa1da (diff) |
[project @ 2002-09-13 09:12:12 by simonmar]
- #include <sys/resource.h> to get at get/setpriority.
- #include "config.h", and protect other includes according to the
configure results.
Diffstat (limited to 'System/Posix')
-rw-r--r-- | System/Posix/Process.hsc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/System/Posix/Process.hsc b/System/Posix/Process.hsc index dfa9e9a..a8145cd 100644 --- a/System/Posix/Process.hsc +++ b/System/Posix/Process.hsc @@ -60,8 +60,16 @@ module System.Posix.Process ( -- getEnvironment, ) where +#include "config.h" #include "HsUnix.h" + +#ifdef HAVE_SYS_TIMES_H #include <sys/times.h> +#endif + +#ifdef HAVE_SYS_RESOURCE_H +#include <sys/resource.h> +#endif import Foreign import Foreign.C |