fixed in 1.1.6
This commit is contained in:
parent
05cb627b4c
commit
518da08b9f
@ -1,7 +1,4 @@
|
||||
$OpenBSD: patch-netdev_c,v 1.2 2001/07/13 13:30:03 naddy Exp $
|
||||
|
||||
- add define from FreeBSD net/if.h as we don't have it here
|
||||
|
||||
$OpenBSD: patch-netdev_c,v 1.3 2001/07/16 00:02:34 naddy Exp $
|
||||
--- src/netdev.c.orig Wed May 9 19:51:52 2001
|
||||
+++ src/netdev.c Thu Jun 14 11:09:05 2001
|
||||
@@ -22,7 +22,9 @@ Boston, MA 02111-1307, USA. */
|
||||
@ -14,18 +11,3 @@ $OpenBSD: patch-netdev_c,v 1.2 2001/07/13 13:30:03 naddy Exp $
|
||||
#include <netdb.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
@@ -37,6 +39,14 @@ Boston, MA 02111-1307, USA. */
|
||||
static char rcsid[]="$Id: patch-netdev_c,v 1.2 2001/07/13 13:30:03 naddy Exp $";
|
||||
#endif
|
||||
|
||||
+/* borrowed from FreeBSD net/if.h */
|
||||
+#ifdef __OpenBSD__
|
||||
+#define _SIZEOF_ADDR_IFREQ(ifr) \
|
||||
+((ifr).ifr_addr.sa_len > sizeof(struct sockaddr) ? \
|
||||
+ (sizeof(struct ifreq) - sizeof(struct sockaddr) + \
|
||||
+ (ifr).ifr_addr.sa_len) : sizeof(struct ifreq))
|
||||
+#endif
|
||||
+
|
||||
/*
|
||||
* These portion is Linux/FreeBSD specific. Please write interface-detection routines for other
|
||||
* flavours of Unix if you can and want.
|
||||
|
Loading…
Reference in New Issue
Block a user