File tree 2 files changed +19
-7
lines changed
2 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -20494,8 +20494,7 @@ LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
20494
20494
20495
20495
20496
20496
20497
-
20498
- for ac_func in crypt erand48 getopt getpeereid getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20497
+ for ac_func in crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul
20499
20498
do
20500
20499
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20501
20500
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
@@ -20607,16 +20606,25 @@ done
20607
20606
case $host_os in
20608
20607
20609
20608
# Windows uses a specialised env handler
20609
+ # and doesn't need a replacement getpeereid because it doesn't use
20610
+ # Unix sockets.
20610
20611
mingw*)
20611
20612
20612
20613
cat >>confdefs.h <<\_ACEOF
20613
20614
#define HAVE_UNSETENV 1
20614
20615
_ACEOF
20615
20616
20616
- ac_cv_func_unsetenv=yes;;
20617
+
20618
+ cat >>confdefs.h <<\_ACEOF
20619
+ #define HAVE_GETPEEREID 1
20620
+ _ACEOF
20621
+
20622
+ ac_cv_func_unsetenv=yes
20623
+ ac_cv_func_getpeereid=yes;;
20617
20624
*)
20618
20625
20619
- for ac_func in unsetenv
20626
+
20627
+ for ac_func in unsetenv getpeereid
20620
20628
do
20621
20629
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20622
20630
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
Original file line number Diff line number Diff line change @@ -1311,16 +1311,20 @@ fi
1311
1311
pgac_save_LIBS="$LIBS"
1312
1312
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
1313
1313
1314
- AC_REPLACE_FUNCS([crypt erand48 getopt getpeereid getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul])
1314
+ AC_REPLACE_FUNCS([crypt erand48 getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul])
1315
1315
1316
1316
case $host_os in
1317
1317
1318
1318
# Windows uses a specialised env handler
1319
+ # and doesn't need a replacement getpeereid because it doesn't use
1320
+ # Unix sockets.
1319
1321
mingw*)
1320
1322
AC_DEFINE(HAVE_UNSETENV, 1, [Define to 1 because replacement version used.])
1321
- ac_cv_func_unsetenv=yes;;
1323
+ AC_DEFINE(HAVE_GETPEEREID, 1, [Define to 1 because function not required.])
1324
+ ac_cv_func_unsetenv=yes
1325
+ ac_cv_func_getpeereid=yes;;
1322
1326
*)
1323
- AC_REPLACE_FUNCS([unsetenv])
1327
+ AC_REPLACE_FUNCS([unsetenv getpeereid ])
1324
1328
;;
1325
1329
esac
1326
1330
You can’t perform that action at this time.
0 commit comments