summaryrefslogtreecommitdiffstats
path: root/lib/socket_wrapper
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2014-10-02 07:00:44 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-10-02 09:35:10 +0200
commita7a47796fd7ca1fa830a8c2644042c311b9796da (patch)
tree092d32b72c42fcd401db05dad465a3fe77f4211f /lib/socket_wrapper
parent6c05cd3e895831be7d9a68a51de2048d04c188a0 (diff)
downloadsamba-a7a47796fd7ca1fa830a8c2644042c311b9796da.tar.gz
samba-a7a47796fd7ca1fa830a8c2644042c311b9796da.tar.xz
samba-a7a47796fd7ca1fa830a8c2644042c311b9796da.zip
swrap: fix build when neither HAVE_STRUCT_IN_PKTINFO nor IP_RECVDSTADDR is defined
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib/socket_wrapper')
-rw-r--r--lib/socket_wrapper/socket_wrapper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index afd93433ae..78cecd2b80 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -3407,8 +3407,7 @@ static int swrap_msghdr_add_pktinfo(struct socket_info *si,
{
/* Add packet info */
switch (si->pktinfo) {
-#if defined(IP_PKTINFO)
-/* && (defined(HAVE_STRUCT_IN_PKTINFO) || defined(IP_RECVDSTADDR)) */
+#if defined(IP_PKTINFO) && (defined(HAVE_STRUCT_IN_PKTINFO) || defined(IP_RECVDSTADDR))
case AF_INET: {
struct sockaddr_in *sin;
#if defined(HAVE_STRUCT_IN_PKTINFO)