diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-26 07:01:10 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-26 07:01:10 +0000 |
commit | 079377c8423a91f3182dacae38cb121c1599878b (patch) | |
tree | 8b5aed8ccd7b2f5a38f3f15fd8802d70668d62d6 /include | |
parent | 30cdcf1169aa4a5f65b472411a66b3a6bfd14939 (diff) | |
download | busybox-w32-079377c8423a91f3182dacae38cb121c1599878b.tar.gz busybox-w32-079377c8423a91f3182dacae38cb121c1599878b.tar.bz2 busybox-w32-079377c8423a91f3182dacae38cb121c1599878b.zip |
fix non-ipv6 compile
git-svn-id: svn://busybox.net/trunk/busybox@17535 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 3 |
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); | |||
319 | #if ENABLE_FEATURE_IPV6 | 319 | #if ENABLE_FEATURE_IPV6 |
320 | /* Same, useful if you want to force family (e.g. IPv6) */ | 320 | /* Same, useful if you want to force family (e.g. IPv6) */ |
321 | len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af); | 321 | len_and_sockaddr* host_and_af2sockaddr(const char *host, int port, sa_family_t af); |
322 | #else | ||
323 | /* [we evaluate af: think about "host_and_af2sockaddr(..., af++)"] */ | ||
324 | #define host_and_af2sockaddr(host, port, af) ((af), host2sockaddr((host), (port))) | ||
322 | #endif | 325 | #endif |
323 | /* Assign sin[6]_port member if the socket is of corresponding type, | 326 | /* Assign sin[6]_port member if the socket is of corresponding type, |
324 | * otherwise no-op. Useful for ftp. | 327 | * otherwise no-op. Useful for ftp. |