summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-05-23 10:01:21 +0200
committerMichael Adam <obnox@samba.org>2014-05-26 10:06:20 +0200
commit13ea22cdaac3b5855232f1f59d910b628847ffe2 (patch)
tree988bd6fe43dff04df27748669832c78e89dac890 /src
parentf81b6e84d57a6d40dce96b49cf18d924ab282872 (diff)
downloadsocket_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.c2
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;