Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.

Commit 6785881

Browse files
committed
clean up acinclude.m4
1 parent 22cc3db commit 6785881

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

acinclude.m4

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -499,11 +499,11 @@ AC_DEFUN([TYPE_SOCKLEN_T],
499499
[
500500
AC_CHECK_TYPE([socklen_t], ,[
501501
AC_MSG_CHECKING([for socklen_t equivalent])
502-
AC_CACHE_VAL([socklen_t_equiv],
502+
AC_CACHE_VAL([ac_cv_socklen_t_equiv],
503503
[
504504
# Systems have either "struct sockaddr *" or
505505
# "void *" as the second argument to getpeername
506-
socklen_t_equiv=
506+
ac_cv_socklen_t_equiv=
507507
for arg2 in "struct sockaddr" void; do
508508
for t in int size_t unsigned long "unsigned long"; do
509509
AC_TRY_COMPILE([
@@ -515,18 +515,18 @@ AC_DEFUN([TYPE_SOCKLEN_T],
515515
$t len;
516516
getpeername(0,0,&len);
517517
],[
518-
socklen_t_equiv="$t"
518+
ac_cv_socklen_t_equiv="$t"
519519
break
520520
])
521521
done
522522
done
523523
524-
if test "x$socklen_t_equiv" = x; then
524+
if test "x$ac_cv_socklen_t_equiv" = x; then
525525
AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
526526
fi
527527
])
528-
AC_MSG_RESULT($socklen_t_equiv)
529-
AC_DEFINE_UNQUOTED(socklen_t, $socklen_t_equiv,
528+
AC_MSG_RESULT($ac_cv_socklen_t_equiv)
529+
AC_DEFINE_UNQUOTED(socklen_t, $ac_cv_socklen_t_equiv,
530530
[type to use in place of socklen_t if not defined])],
531531
[#include <sys/types.h>
532532
#include <sys/socket.h>])

0 commit comments

Comments
 (0)