diff options
author | Vyacheslav Trushkin <me@dogonthesun.net> | 2011-11-30 21:03:44 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-12-13 14:15:48 +0400 |
commit | d5cd9a9758932dc644eb8b3f0eff3d2e17a7d677 (patch) | |
tree | c95a1d4d56ae734e231710f94b958cca82c75d9a | |
parent | 271ee735ed3a42a1fe52f6401ddf72bd5d3e4f10 (diff) |
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.
-rw-r--r-- | lib/zclient.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/zclient.c b/lib/zclient.c index 3d5be918..a5d5b7ff 100644 --- a/lib/zclient.c +++ b/lib/zclient.c @@ -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 |