]> git.proxmox.com Git - mirror_frr.git/blobdiff - vtysh/vtysh.c
[autoconf] bugs 162,303,178: Fix 'present but can not be compiled' warnings
[mirror_frr.git] / vtysh / vtysh.c
index 2b907ca2c7e784f3b32d73d2100a7115b4c2370e..777a7ac26b2852deb03e76dd0f83c0cbe719d684 100644 (file)
@@ -2122,11 +2122,11 @@ vtysh_connect (struct vtysh_client *vclient)
   memset (&addr, 0, sizeof (struct sockaddr_un));
   addr.sun_family = AF_UNIX;
   strncpy (addr.sun_path, vclient->path, strlen (vclient->path));
-#ifdef HAVE_SUN_LEN
+#ifdef HAVE_STRUCT_SOCKADDR_UN_SUN_LEN
   len = addr.sun_len = SUN_LEN(&addr);
 #else
   len = sizeof (addr.sun_family) + strlen (addr.sun_path);
-#endif /* HAVE_SUN_LEN */
+#endif /* HAVE_STRUCT_SOCKADDR_UN_SUN_LEN */
 
   ret = connect (sock, (struct sockaddr *) &addr, len);
   if (ret < 0)