git.samba.org
/
obnox
/
cwrap
/
socket_wrapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58ee429
)
swrap: fix build when neither HAVE_STRUCT_IN_PKTINFO nor IP_RECVDSTADDR is defined
author
Michael Adam
<obnox@samba.org>
Tue, 3 Jun 2014 13:52:43 +0000
(15:52 +0200)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/src/socket_wrapper.c
b/src/socket_wrapper.c
index d454c4487720de30d5d2895a563c1700ffca8bf5..a1c09daf97b91a8a009c8fd37480fc9ea7d46b38 100644
(file)
--- a/
src/socket_wrapper.c
+++ b/
src/socket_wrapper.c
@@
-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)