summaryrefslogtreecommitdiffstats
path: root/source4/lib/replace
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-01-23 15:09:55 +1100
committerAndrew Bartlett <abartlet@samba.org>2008-01-23 15:09:55 +1100
commit56a611b12618ef0224a7a8a12883e0ab8340962d (patch)
treed7bdef53981d1131bee032bfd7b1d68b597c6fe2 /source4/lib/replace
parent2eab4abf25453a1849adb28d65869c16b2479f57 (diff)
parent37325c4c1324d6b768bc8f4449a954550333e34d (diff)
downloadsamba-56a611b12618ef0224a7a8a12883e0ab8340962d.tar.gz
samba-56a611b12618ef0224a7a8a12883e0ab8340962d.tar.xz
samba-56a611b12618ef0224a7a8a12883e0ab8340962d.zip
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit f82eec69f1846aa46e4afe595d956cfd2256c335)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/system/config.m425
1 files changed, 25 insertions, 0 deletions
diff --git a/source4/lib/replace/system/config.m4 b/source4/lib/replace/system/config.m4
index 799187af7d..1c05733126 100644
--- a/source4/lib/replace/system/config.m4
+++ b/source4/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)