diff options
| author | Andreas Schneider <asn@samba.org> | 2014-05-23 10:01:21 +0200 |
|---|---|---|
| committer | Michael Adam <obnox@samba.org> | 2014-05-26 10:06:20 +0200 |
| commit | 13ea22cdaac3b5855232f1f59d910b628847ffe2 (patch) | |
| tree | 988bd6fe43dff04df27748669832c78e89dac890 /src | |
| parent | f81b6e84d57a6d40dce96b49cf18d924ab282872 (diff) | |
| download | socket_wrapper-13ea22cdaac3b5855232f1f59d910b628847ffe2.tar.gz socket_wrapper-13ea22cdaac3b5855232f1f59d910b628847ffe2.tar.xz socket_wrapper-13ea22cdaac3b5855232f1f59d910b628847ffe2.zip | |
swrap: Check if the in_pktinfo structure is available.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'src')
| -rw-r--r-- | src/socket_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index f5a7858..56d1d96 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -3053,7 +3053,7 @@ static int swrap_msghdr_add_pktinfo(struct socket_info *si, { /* Add packet info */ switch (si->pktinfo) { -#ifdef IP_PKTINFO +#if defined(IP_PKTINFO) && defined(HAVE_STRUCT_IN_PKTINFO) case AF_INET: { struct sockaddr_in *sin; struct in_pktinfo pkt; |
