]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: clearing zclient.c for some cases of building
authorVyacheslav Trushkin <me@dogonthesun.net>
Wed, 30 Nov 2011 17:03:44 +0000 (21:03 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 13 Dec 2011 10:26:45 +0000 (14:26 +0400)
lib/zclient.c: using of HAVE_TCP_ZEBRA in zclient_socket_*
definitions extended by else clause.

lib/zclient.c

index 3d5be9181915509de1770fedf1cc80bf1d83e1a6..a5d5b7ffcf0cf86476155899f2acaccd1f56a01f 100644 (file)
@@ -179,7 +179,7 @@ zclient_socket(void)
   return sock;
 }
 
-#endif /* HAVE_TCP_ZEBRA */
+#else
 
 /* For sockaddr_un. */
 #include <sys/un.h>
@@ -214,6 +214,8 @@ zclient_socket_un (const char *path)
   return sock;
 }
 
+#endif /* HAVE_TCP_ZEBRA */
+
 /**
  * Connect to zebra daemon.
  * @param zclient a pointer to zclient structure