summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-06 08:06:50 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:44:32 +0100
commit70cf786aab06a45cc6f086fb44d5caee2b108369 (patch)
treee834cef94d8b8e216f95aab4a00d7071efb8f90d
parent29598b83e0a39cc0a52252e924733f23d5a21afa (diff)
downloadsamba-70cf786aab06a45cc6f086fb44d5caee2b108369.tar.gz
samba-70cf786aab06a45cc6f086fb44d5caee2b108369.tar.bz2
samba-70cf786aab06a45cc6f086fb44d5caee2b108369.zip
r25866: nss_wrapper: not all systems have get*_r calls
metze (This used to be commit 6a3f97aeac81cf7dd1a28fd9f17ec2f6e35300dc)
-rw-r--r--source4/lib/nss_wrapper/nss_wrapper.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source4/lib/nss_wrapper/nss_wrapper.c b/source4/lib/nss_wrapper/nss_wrapper.c
index dae3c1c626..1b75aa59e6 100644
--- a/source4/lib/nss_wrapper/nss_wrapper.c
+++ b/source4/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