diff options
author | metze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818> | 2007-11-06 08:06:50 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-11-09 09:52:59 +0100 |
commit | 90d034f7cfbe8fc0e18ff054ceabf2435c9f0fd2 (patch) | |
tree | 0772965e7d1e617dfbb364779b2944e53b12d0b7 /source3/lib | |
parent | ca2ced5c2356d3d59ce1539dc655f85f150266d9 (diff) | |
download | samba-90d034f7cfbe8fc0e18ff054ceabf2435c9f0fd2.tar.gz samba-90d034f7cfbe8fc0e18ff054ceabf2435c9f0fd2.tar.bz2 samba-90d034f7cfbe8fc0e18ff054ceabf2435c9f0fd2.zip |
nss_wrapper: not all systems have get*_r calls
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25866 0c0555d6-39d7-0310-84fc-f1cc0bd64818
(This used to be commit 2451399acb9dbba6b02935f6a1d02e2b56b499ef)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/nss_wrapper/nss_wrapper.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/lib/nss_wrapper/nss_wrapper.c b/source3/lib/nss_wrapper/nss_wrapper.c index dae3c1c626..1b75aa59e6 100644 --- a/source3/lib/nss_wrapper/nss_wrapper.c +++ b/source3/lib/nss_wrapper/nss_wrapper.c @@ -48,6 +48,26 @@ #define _PUBLIC_ #endif +/* not all systems have _r functions... */ +#ifndef HAVE_GETPWNAM_R +#define getpwnam_r(name, pwdst, buf, buflen, pwdstp) ENOSYS +#endif +#ifndef HAVE_GETPWUID_R +#define getpwuid_r(uid, pwdst, buf, buflen, pwdstp) ENOSYS +#endif +#ifndef HAVE_GETPWENT_R +#define getpwent_r(pwdst, buf, buflen, pwdstp) ENOSYS +#endif +#ifndef HAVE_GETGRNAM_R +#define getgrnam_r(name, grdst, buf, buflen, grdstp) ENOSYS +#endif +#ifndef HAVE_GETGRUID_R +#define getgrgid_r(uid, grdst, buf, buflen, grdstp) ENOSYS +#endif +#ifndef HAVE_GETGRENT_R +#define getgrent_r(grdst, buf, buflen, grdstp) ENOSYS +#endif + /* LD_PRELOAD doesn't work yet, so REWRITE_CALLS is all we support * for now */ #define REWRITE_CALLS |