blob: 96515b9b39a0b88af08e51ed0a793404aeea51ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-am,v 1.1 2013/12/15 02:00:07 dholland Exp $
--- libraries/unix/include/HsUnix.h.orig 2008-06-16 19:48:44.000000000 +0200
+++ libraries/unix/include/HsUnix.h 2008-07-19 20:06:49.000000000 +0200
@@ -140,6 +140,28 @@
return mknod(pathname,mode,dev);
}
+#ifdef HAVE_UNSETENV
+INLINE int __hsunix_unsetenv(const char *name)
+{
+ return unsetenv(name);
+}
+#endif
+
+INLINE clock_t __hsunix_times(struct tms *tp)
+{
+ return times(tp);
+}
+
+INLINE int __hsunix_sigpending(sigset_t *set)
+{
+ return sigpending(set);
+}
+
+INLINE int __hsunix_sigsuspend(const sigset_t *sigmask)
+{
+ return sigsuspend(sigmask);
+}
+
#ifdef HAVE_PTSNAME
// I cannot figure out how to make the definitions of the following
// functions visible in <stdlib.h> on Linux. But these definitions
|