aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/HsUnix.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h
index 46af25a..00cb1bc 100644
--- a/include/HsUnix.h
+++ b/include/HsUnix.h
@@ -1,5 +1,5 @@
/* -----------------------------------------------------------------------------
- * $Id: HsUnix.h,v 1.1 2002/09/12 16:38:22 simonmar Exp $
+ * $Id: HsUnix.h,v 1.2 2002/10/08 08:03:02 wolfgang Exp $
*
* (c) The University of Glasgow 2002
*
@@ -16,6 +16,8 @@
#include <sys/wait.h>
#endif
+#include <fcntl.h>
+
extern int execvpe(char *name, char **argv, char **envp);
#ifndef INLINE
@@ -29,4 +31,10 @@ INLINE int __hsunix_wtermsig (int stat) { return WTERMSIG(stat); }
INLINE int __hsunix_wifstopped (int stat) { return WIFSTOPPED(stat); }
INLINE int __hsunix_wstopsig (int stat) { return WSTOPSIG(stat); }
+/* O_SYNC doesn't exist on Mac OS X and (at least some versions of) FreeBSD,
+fall back to O_FSYNC, which should be the same */
+#ifndef O_SYNC
+#define O_SYNC O_FSYNC
+#endif
+
#endif