Skip to content

Commit

Permalink
sockaddr_t only needs to accomodate a sockaddr_in6 if IPV6_ENABLE.
Browse files Browse the repository at this point in the history
Signed-off-by: Eric S. Raymond <[email protected]>
  • Loading branch information
ukyg9e5r6k7gubiekd6 authored and eric-s-raymond committed Sep 7, 2012
1 parent a5f284d commit 3994a4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sockaddr.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 3994a4a

Please sign in to comment.