diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-14 16:04:01 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-14 16:04:01 +0000 |
commit | 1cfb1a324798f6ed03e49813d8dfe6b28dfb9c4f (patch) | |
tree | e45051cede5e258b47718812e830748b0354ceb6 /libc/inet | |
parent | 6770a73cfa0feeb809434131ce019988975a41a5 (diff) |
heed compiler warnings about checking non-defined variables in #if directives
Diffstat (limited to 'libc/inet')
-rw-r--r-- | libc/inet/getaddrinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inet/getaddrinfo.c b/libc/inet/getaddrinfo.c index 25a5b8022..1953e6f7a 100644 --- a/libc/inet/getaddrinfo.c +++ b/libc/inet/getaddrinfo.c @@ -716,9 +716,9 @@ gaih_inet(const char *name, const struct gaih_service *service, (*pai)->ai_protocol = st2->protocol; (*pai)->ai_addrlen = socklen; (*pai)->ai_addr = (void *) (*pai) + sizeof(struct addrinfo); -#if SALEN +#if defined SALEN (*pai)->ai_addr->sa_len = socklen; -#endif /* SALEN */ +#endif (*pai)->ai_addr->sa_family = family; #if defined __UCLIBC_HAS_IPV6__ |