File: libpcap-path.patch

package info (click to toggle)
golang-github-akrennmair-gopcap 0.0~git20150728.0.00e1103-1~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 136 kB
  • sloc: makefile: 3
file content (18 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Last-Update: 2016-02-06
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: fix FTBFS.

--- a/pcap.go
+++ b/pcap.go
@@ -8,9 +8,9 @@
 #cgo windows CFLAGS: -I C:/WpdPack/Include
 #cgo windows,386 LDFLAGS: -L C:/WpdPack/Lib -lwpcap
 #cgo windows,amd64 LDFLAGS: -L C:/WpdPack/Lib/x64 -lwpcap
 #include <stdlib.h>
-#include <pcap.h>
+#include "pcap.h"
 
 // Workaround for not knowing how to cast to const u_char**
 int hack_pcap_next_ex(pcap_t *p, struct pcap_pkthdr **pkt_header,
                       u_char **pkt_data) {