openbsd-ports/net/nmap/patches/patch-libdnet-stripped_src_intf_c
2012-11-16 17:05:13 +00:00

19 lines
613 B
Plaintext

$OpenBSD: patch-libdnet-stripped_src_intf_c,v 1.1 2012/11/16 17:05:13 sthen Exp $
--- libdnet-stripped/src/intf.c.orig Wed Nov 14 04:18:29 2012
+++ libdnet-stripped/src/intf.c Wed Nov 14 04:19:10 2012
@@ -76,7 +76,13 @@
/* XXX - superset of ifreq, for portable SIOC{A,D}IFADDR */
struct dnet_ifaliasreq {
char ifra_name[IFNAMSIZ];
- struct sockaddr ifra_addr;
+ union {
+ struct sockaddr ifrau_addr;
+ int ifrau_align;
+ } ifra_ifrau;
+#ifndef ifra_addr
+#define ifra_addr ifra_ifrau.ifrau_addr
+#endif
struct sockaddr ifra_brdaddr;
struct sockaddr ifra_mask;
int ifra_cookie; /* XXX - IRIX!@#$ */