File: kfreebsd.diff

package info (click to toggle)
libpcap 1.10.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,960 kB
  • sloc: ansic: 47,283; sh: 3,440; makefile: 1,008; lex: 599; python: 254; asm: 227; cpp: 198
file content (22 lines) | stat: -rw-r--r-- 454 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Support for GNU/kFreeBSD, by Aurelien Jarno and others.

--- a/configure.ac
+++ b/configure.ac
@@ -1127,6 +1127,7 @@
 		#endif
 		#include <net/bpf.h>
 	    ])
+	    LIBS="$LIBS -lrt"
 	;;
 
 pf)
--- a/pcap-bpf.c
+++ b/pcap-bpf.c
@@ -26,6 +26,7 @@
 #include <sys/param.h>			/* optionally get BSD define */
 #include <sys/socket.h>
 #include <time.h>
+#include <sys/kern/time.h>
 /*
  * <net/bpf.h> defines ioctls, but doesn't include <sys/ioccom.h>.
  *