diff options
author | Andreas Schneider <asn@samba.org> | 2014-06-03 15:01:34 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-06-05 23:57:10 +0200 |
commit | aa1e24ead4712728cdc3bdd46c5171b1ac12bd23 (patch) | |
tree | 07efe7795d775a05203b40d033bd1a49810ae5f6 /lib/socket_wrapper/wscript | |
parent | 7556e1388f3eb84ea5c12940e578076b2438f78c (diff) | |
download | samba-aa1e24ead4712728cdc3bdd46c5171b1ac12bd23.tar.gz samba-aa1e24ead4712728cdc3bdd46c5171b1ac12bd23.tar.xz samba-aa1e24ead4712728cdc3bdd46c5171b1ac12bd23.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 'lib/socket_wrapper/wscript')
-rw-r--r-- | lib/socket_wrapper/wscript | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/socket_wrapper/wscript b/lib/socket_wrapper/wscript index 53dace41db6..60b4ca89d1c 100644 --- a/lib/socket_wrapper/wscript +++ b/lib/socket_wrapper/wscript @@ -48,6 +48,11 @@ def configure(conf): headers='sys/types.h sys/socket.h', define='HAVE_STRUCT_MSGHDR_MSG_CONTROL') + conf.CHECK_STRUCTURE_MEMBER('struct in_pktinfo', + 'ipi_addr', + headers='sys/types.h sys/socket.h netinet/in.h', + define='HAVE_STRUCT_IN_PKTINFO') + conf.CHECK_STRUCTURE_MEMBER('struct in6_pktinfo', 'ipi6_addr', headers='sys/types.h sys/socket.h netinet/in.h', |