done
+
for wx_func in getpwuid_r
do
{ echo "$as_me:$LINENO: checking for $wx_func" >&5
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
- #define _REENTRANT
- #include <pwd.h>
+
+ #define _REENTRANT
+ #include <pwd.h>
+
$ac_includes_default
int
&$wx_func;
#endif
+ struct passwd pw, *ppw;
+ char buf[1024];
+ getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
+
;
return 0;
done
+
for wx_func in getgrgid_r
do
{ echo "$as_me:$LINENO: checking for $wx_func" >&5
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
- #define _REENTRANT
- #include <grp.h>
+
+ #define _REENTRANT
+ #include <grp.h>
+
$ac_includes_default
int
&$wx_func;
#endif
+ struct group grp, *pgrp;
+ char buf[1024];
+ getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
+
;
return 0;
if test "$wxUSE_TARSTREAM" = "yes"; then
WX_CHECK_FUNCS(sysconf)
- WX_CHECK_FUNCS(getpwuid_r, [], [], [#define _REENTRANT
- #include <pwd.h>])
- WX_CHECK_FUNCS(getgrgid_r, [], [], [#define _REENTRANT
- #include <grp.h>])
+
+ WX_CHECK_FUNCS(getpwuid_r, [], [],
+ [
+ #define _REENTRANT
+ #include <pwd.h>
+ ],
+ [[
+ struct passwd pw, *ppw;
+ char buf[1024];
+ getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
+ ]])
+
+ WX_CHECK_FUNCS(getgrgid_r, [], [],
+ [
+ #define _REENTRANT
+ #include <grp.h>
+ ],
+ [[
+ struct group grp, *pgrp;
+ char buf[1024];
+ getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
+ ]])
fi
fi