aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix
diff options
context:
space:
mode:
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