aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix
diff options
context:
space:
mode:
authorGravatar simonmar <unknown>2002-09-13 09:12:12 +0000
committerGravatar simonmar <unknown>2002-09-13 09:12:12 +0000
commit599742c6159e9a7c1e999118f98a68c1ac5e16b7 (patch)
treed0ab5def812154428c7a1ac76cb8685c9ede8a42 /System/Posix
parentfb789a7a51ba183c2600711a5f771720930aa1da (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.hsc8
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