mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
metze
(This used to be commit 2f46091511
)
This commit is contained in:
parent
2a78eb9c0d
commit
f5df4a100a
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user