Fix in CVS ndeed Posix compile problem

Simon Marlow simonmar@microsoft.com
Wed, 26 Mar 2003 09:52:17 -0000


> SunOS 5.8
> Reading specs from=20
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/specs
> gcc version 2.95.3 20010315 (release)=20
> In the posix related libaries there are two forign call definition.
>=20
> foreign import ccall unsafe "getpwuid_r"
>   c_getpwuid_r :: CUid -> Ptr CPasswd ->
>             CString -> CSize -> Ptr (Ptr CPasswd) -> IO CInt=20
>=20
> foreign import ccall unsafe "getpwnam_r"
>   c_getpwnam_r :: CString -> Ptr CPasswd ->
>             CString -> CSize -> Ptr (Ptr CPasswd) -> IO CInt
>=20
> But the gcc says there are too many argument.
> There are two ways to go around.
> I change the foriegn call definition "getpwuid_r" =3D=3D>=20
> "__posix_getpwuid_r"
> I change the foriegn call definition "getpwnam_r" =3D=3D>=20
> "__posix_getpwnam_r"

Thanks, I'll look into this.

Cheers,
	Simon