summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-26 07:01:10 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-26 07:01:10 +0000
commita1042e94f176d50a94e95108f6b6391663f578ea (patch)
tree8b5aed8ccd7b2f5a38f3f15fd8802d70668d62d6
parent30abe979406741283edd7148cc3b32df9534bfb7 (diff)
fix non-ipv6 compile
-rw-r--r--include/libbb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index fda0dbe40..def6124d7 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -319,6 +319,9 @@ len_and_sockaddr* host2sockaddr(const char *host, int port);
#if ENABLE_FEATURE_IPV6
/* Same, useful if you want to force family (e.g. IPv6) */
len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af);
+#else
+/* [we evaluate af: think about "host_and_af2sockaddr(..., af++)"] */
+#define host_and_af2sockaddr(host, port, af) ((af), host2sockaddr((host), (port)))
#endif
/* Assign sin[6]_port member if the socket is of corresponding type,
* otherwise no-op. Useful for ftp.