19 lines
563 B
Plaintext
19 lines
563 B
Plaintext
$OpenBSD: patch-src_intf_c,v 1.1 2012/11/16 17:05:13 sthen Exp $
|
|
--- src/intf.c.orig Wed Nov 14 04:15:30 2012
|
|
+++ src/intf.c Wed Nov 14 04:16:33 2012
|
|
@@ -66,7 +66,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!@#$ */
|