File: makearp-netbsd.patch

package info (click to toggle)
zcip 4-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 188 kB
  • ctags: 57
  • sloc: ansic: 1,004; makefile: 39
file content (28 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- make-arp.c	2002-03-12 22:52:48.000000000 -0500
+++ make-arp.c.new	2002-07-31 19:17:12.000000000 -0400
@@ -3,7 +3,11 @@
 #include <errno.h>
 #include <stdarg.h>
 #include <stddef.h>
+#ifdef _BSD
+#include <inttypes.h>
+#else
 #include <stdint.h>
+#endif
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -15,7 +19,12 @@
 
 #include <arpa/inet.h>
 
+#ifdef _BSD
+#define ETH_ALEN ETHER_ADDR_LEN
+#include <netinet/ip_compat.h>
+#else
 #include <net/ethernet.h>
+#endif
 #include <net/if.h>
 #include <net/if_arp.h>
 #include <net/route.h>