diff options
author | simonmar <unknown> | 2003-09-22 10:57:45 +0000 |
---|---|---|
committer | simonmar <unknown> | 2003-09-22 10:57:45 +0000 |
commit | 8af9020e15c74f1594ce695aaa63fb5477b047aa (patch) | |
tree | 82a69c7347ade11f01421ab548182f8cc1ed7be4 /System | |
parent | 3ea22075e673b0e162603e0256868f302fac1b8c (diff) |
[project @ 2003-09-22 10:57:45 by simonmar]
Untested fix for Solaris to get the right versions of getgrnam_r and
friends.
I'd appreciate it if someone with a Solaris build could test this.
Diffstat (limited to 'System')
-rw-r--r-- | System/Posix/User.hsc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/System/Posix/User.hsc b/System/Posix/User.hsc index 010adfc..a2bf206 100644 --- a/System/Posix/User.hsc +++ b/System/Posix/User.hsc @@ -44,6 +44,11 @@ module System.Posix.User ( #include "HsUnix.h" +#ifdef solaris_TARGET_OS +-- Solaris needs this in order to get the POSIX versions of getgrnam_r etc. +#define _POSIX_PTHREAD_SEMANTICS +#endif + import System.Posix.Types import Foreign import Foreign.C |