swrap: fix build when neither HAVE_STRUCT_IN_PKTINFO nor IP_RECVDSTADDR is defined
authorMichael Adam <obnox@samba.org>
Tue, 3 Jun 2014 13:52:43 +0000 (15:52 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 5 Jun 2014 22:57:30 +0000 (00:57 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
src/socket_wrapper.c

index d454c4487720de30d5d2895a563c1700ffca8bf5..a1c09daf97b91a8a009c8fd37480fc9ea7d46b38 100644 (file)
@@ -3402,8 +3402,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)