summaryrefslogtreecommitdiff
path: root/sockaddr.h
diff options
context:
space:
mode:
authorukyg9e5r6k7gubiekd6 <ukyg9e5r6k7gubiekd6@mailinator.com>2012-08-02 23:46:23 +1000
committerEric S. Raymond <esr@thyrsus.com>2012-09-07 05:08:24 -0400
commit3994a4a95ec7c58f3d1347805b9384a7dfce4745 (patch)
treef87e1cf0489ce323d2c9fbd3026f81bc5be94ac1 /sockaddr.h
parenta5f284d5685218b596c26192cfd04b57d30c05f7 (diff)
downloadgpsd-3994a4a95ec7c58f3d1347805b9384a7dfce4745.tar.gz
sockaddr_t only needs to accomodate a sockaddr_in6 if IPV6_ENABLE.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'sockaddr.h')
-rw-r--r--sockaddr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sockaddr.h b/sockaddr.h
index 61866d09..f4f92066 100644
--- a/sockaddr.h
+++ b/sockaddr.h
@@ -3,7 +3,9 @@
typedef union sockaddr_u {
struct sockaddr sa;
struct sockaddr_in sa_in;
+#ifdef IPV6_ENABLE
struct sockaddr_in6 sa_in6;
+#endif /* IPV6_ENABLE */
} sockaddr_t;
/* sockaddr.h ends here */