Skip to content

Commit d1b9944

Browse files
dstosbergJunio C Hamano
authored andcommitted
Fix detection of ipv6 on Solaris
The configuration script detects whether linking with -lsocket is necessary but doesn't add -lsocket to LIBS. This lets the ipv6 test fail. Signed-off-by: Dennis Stosberg <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ab5573a commit d1b9944

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ AC_CHECK_LIB([c], [socket],
154154
[NEEDS_SOCKET=],
155155
[NEEDS_SOCKET=YesPlease])
156156
AC_SUBST(NEEDS_SOCKET)
157+
test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket"
157158

158159

159160
## Checks for header files.

0 commit comments

Comments
 (0)