@@ -13247,6 +13247,65 @@ cat >>confdefs.h <<\_ACEOF
13247
13247
#define GETPWUID_THREADSAFE 1
13248
13248
_ACEOF
13249
13249
13250
+ else echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
13251
+ echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6
13252
+ if test "${pgac_func_getpwuid_r_5arg+set}" = set; then
13253
+ echo $ECHO_N "(cached) $ECHO_C" >&6
13254
+ else
13255
+ cat >conftest.$ac_ext <<_ACEOF
13256
+ #line $LINENO "configure"
13257
+ #include "confdefs.h"
13258
+ #include <sys/types.h>
13259
+ #include <pwd.h>
13260
+ #ifdef F77_DUMMY_MAIN
13261
+ # ifdef __cplusplus
13262
+ extern "C"
13263
+ # endif
13264
+ int F77_DUMMY_MAIN() { return 1; }
13265
+ #endif
13266
+ int
13267
+ main ()
13268
+ {
13269
+ uid_t uid;
13270
+ struct passwd *space;
13271
+ char *buf;
13272
+ size_t bufsize;
13273
+ struct passwd **result;
13274
+ getpwuid_r(uid, space, buf, bufsize, result);
13275
+ ;
13276
+ return 0;
13277
+ }
13278
+ _ACEOF
13279
+ rm -f conftest.$ac_objext
13280
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13281
+ (eval $ac_compile) 2>&5
13282
+ ac_status=$?
13283
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284
+ (exit $ac_status); } &&
13285
+ { ac_try='test -s conftest.$ac_objext'
13286
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287
+ (eval $ac_try) 2>&5
13288
+ ac_status=$?
13289
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290
+ (exit $ac_status); }; }; then
13291
+ pgac_func_getpwuid_r_5arg=yes
13292
+ else
13293
+ echo "$as_me: failed program was:" >&5
13294
+ cat conftest.$ac_ext >&5
13295
+ pgac_func_getpwuid_r_5arg=no
13296
+ fi
13297
+ rm -f conftest.$ac_objext conftest.$ac_ext
13298
+ fi
13299
+ echo "$as_me:$LINENO: result: $pgac_func_getpwuid_r_5arg" >&5
13300
+ echo "${ECHO_T}$pgac_func_getpwuid_r_5arg" >&6
13301
+ if test x"$pgac_func_getpwuid_r_5arg" = xyes ; then
13302
+
13303
+ cat >>confdefs.h <<\_ACEOF
13304
+ #define GETPWUID_R_5ARG
13305
+ _ACEOF
13306
+
13307
+ fi
13308
+
13250
13309
fi
13251
13310
if test "$enable_thread_safety" = yes -a "$GETHOSTBYNAME_THREADSAFE" = yes ; then
13252
13311
0 commit comments