lib: clearing zclient.c for some cases of building

lib/zclient.c: using of HAVE_TCP_ZEBRA in zclient_socket_*
definitions extended by else clause.
This commit is contained in:
Vyacheslav Trushkin 2011-11-30 21:03:44 +04:00 committed by Denis Ovsienko
parent 271ee735ed
commit d5cd9a9758

View File

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