Avoid unnecessary compilation units, through conditional dependencies.
[gnulib.git] / modules / getpeername
index a8a4fca..4cdae38 100644 (file)
@@ -8,7 +8,7 @@ lib/w32sock.h
 
 Depends-on:
 sys_socket
-errno
+errno           [test "$ac_cv_header_winsock2_h" = yes]
 
 configure.ac:
 AC_REQUIRE([gl_HEADER_SYS_SOCKET])