[SCM] Samba Shared Repository - branch v4-0-test updated -
release-4-0-0alpha2-512-gd2ac8be
Stefan Metzmacher
metze at samba.org
Tue Jan 22 11:26:19 GMT 2008
The branch, v4-0-test has been updated
via d2ac8be28d3aff59eddbdc6189a255a34c10d502 (commit)
from b99b604a5f8b7eb98a6285145188c0b94946df78 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test
- Log -----------------------------------------------------------------
commit d2ac8be28d3aff59eddbdc6189a255a34c10d502
Author: Stefan Metzmacher <metze at samba.org>
Date: Tue Jan 22 12:21:55 2008 +0100
libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
metze
(cherry picked from commit 2f460915111066d79f5dc9b4ae4d003918d06852)
-----------------------------------------------------------------------
Summary of changes:
source/lib/replace/system/config.m4 | 25 +++++++++++++++++++++++++
1 files changed, 25 insertions(+), 0 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/lib/replace/system/config.m4 b/source/lib/replace/system/config.m4
index 799187a..1c05733 100644
--- a/source/lib/replace/system/config.m4
+++ b/source/lib/replace/system/config.m4
@@ -73,6 +73,18 @@ AC_VERIFY_C_PROTOTYPE([struct passwd *getpwent_r(struct passwd *src, char *buf,
#include <unistd.h>
#include <pwd.h>
])
+AC_VERIFY_C_PROTOTYPE([struct passwd *getpwent_r(struct passwd *src, char *buf, size_t buflen)],
+ [
+ #ifndef HAVE_GETPWENT_R_DECL
+ #error missing getpwent_r prototype
+ #endif
+ return NULL;
+ ],[
+ AC_DEFINE(SOLARIS_GETPWENT_R, 1, [getpwent_r irix (similar to solaris) function prototype])
+ ],[],[
+ #include <unistd.h>
+ #include <pwd.h>
+ ])
AC_CHECK_FUNCS(getgrnam_r getgrgid_r getgrent_r)
AC_HAVE_DECL(getgrent_r, [
#include <unistd.h>
@@ -91,6 +103,19 @@ AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, in
#include <grp.h>
])
+AC_VERIFY_C_PROTOTYPE([struct group *getgrent_r(struct group *src, char *buf, size_t buflen)],
+ [
+ #ifndef HAVE_GETGRENT_R_DECL
+ #error missing getgrent_r prototype
+ #endif
+ return NULL;
+ ],[
+ AC_DEFINE(SOLARIS_GETGRENT_R, 1, [getgrent_r irix (similar to solaris) function prototype])
+ ],[],[
+ #include <unistd.h>
+ #include <grp.h>
+ ])
+
# locale
AC_CHECK_HEADERS(ctype.h locale.h)
--
Samba Shared Repository
More information about the samba-cvs
mailing list