summaryrefslogtreecommitdiff
path: root/emulators/hercules/patches/patch-ad
blob: f2ecc9ddd9b8bc06f8b5714f04c8a4584d2dfd13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ad,v 1.1.1.1 2001/02/19 12:35:21 agc Exp $

Linux tape handling.

--- hercifc.c	2001/02/19 12:08:31	1.1
+++ hercifc.c	2001/02/19 12:08:42
@@ -64,7 +64,11 @@
     sin = (struct sockaddr_in*)
             (oper == SIOCSIFADDR ? &ifreq.ifr_addr
             :oper == SIOCSIFDSTADDR ? &ifreq.ifr_dstaddr
+#ifdef __NetBSD__
+            :oper == SIOCSIFNETMASK ? &ifreq.ifr_broadaddr
+#else
             :oper == SIOCSIFNETMASK ? &ifreq.ifr_netmask
+#endif
             :NULL);
 
     /* Store the IP address into the structure */