File tree Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Expand file tree Collapse file tree 2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -20423,8 +20423,7 @@ LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20423
20423
20424
20424
20425
20425
20426
-
20427
- for ac_func in crypt erand48 getopt getpeereid getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20426
+ for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20428
20427
do
20429
20428
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20430
20429
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -20536,16 +20535,25 @@ done
20536
20535
case $host_os in
20537
20536
20538
20537
# Windows uses a specialised env handler
20538
+ # and doesn't need a replacement getpeereid because it doesn't use
20539
+ # Unix sockets.
20539
20540
mingw*)
20540
20541
20541
20542
cat >>confdefs.h <<\_ACEOF
20542
20543
#define HAVE_UNSETENV 1
20543
20544
_ACEOF
20544
20545
20545
- ac_cv_func_unsetenv=yes;;
20546
+
20547
+ cat >>confdefs.h <<\_ACEOF
20548
+ #define HAVE_GETPEEREID 1
20549
+ _ACEOF
20550
+
20551
+ ac_cv_func_unsetenv=yes
20552
+ ac_cv_func_getpeereid=yes;;
20546
20553
*)
20547
20554
20548
- for ac_func in unsetenv
20555
+
20556
+ for ac_func in unsetenv getpeereid
20549
20557
do
20550
20558
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20551
20559
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
Original file line number Diff line number Diff line change @@ -1310,16 +1310,20 @@ fi
1310
1310
pgac_save_LIBS="$LIBS"
1311
1311
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
1312
1312
1313
- AC_REPLACE_FUNCS([crypt erand48 getopt getpeereid getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul])
1313
+ AC_REPLACE_FUNCS([crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul])
1314
1314
1315
1315
case $host_os in
1316
1316
1317
1317
# Windows uses a specialised env handler
1318
+ # and doesn't need a replacement getpeereid because it doesn't use
1319
+ # Unix sockets.
1318
1320
mingw*)
1319
1321
AC_DEFINE(HAVE_UNSETENV, 1, [Define to 1 because replacement version used.])
1320
- ac_cv_func_unsetenv=yes;;
1322
+ AC_DEFINE(HAVE_GETPEEREID, 1, [Define to 1 because function not required.])
1323
+ ac_cv_func_unsetenv=yes
1324
+ ac_cv_func_getpeereid=yes;;
1321
1325
*)
1322
- AC_REPLACE_FUNCS([unsetenv])
1326
+ AC_REPLACE_FUNCS([unsetenv getpeereid ])
1323
1327
;;
1324
1328
esac
1325
1329
You can’t perform that action at this time.
0 commit comments