aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/HsUnix.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/HsUnix.h b/include/HsUnix.h
index 8669b30..9b2e697 100644
--- a/include/HsUnix.h
+++ b/include/HsUnix.h
@@ -118,4 +118,16 @@ INLINE int __hsunix_SIGINFO() { return SIGINFO; }
INLINE int __hsunix_SIGWINCH() { return SIGWINCH; }
#endif
+// lstat is a macro on some platforms, so we need a wrapper:
+INLINE int __hsunix_lstat(const char *path, struct stat *buf)
+{
+ return lstat(path,buf);
+}
+
+// lstat is a macro on some platforms, so we need a wrapper:
+INLINE int __hsunix_mknod(const char *pathname, mode_t mode, dev_t dev)
+{
+ return mknod(pathname,mode,dev);
+}
+
#endif