ports/security/dsniff/files/patch-pcaputil.c
Renato Botelho e7fef78c99 Fix build with clang:
. Add direct dependency to net/bpf.h
  . Rename symbol csin to avoid conflict with complex.h

Approved by:	portmgr (blanket)
2014-04-23 14:24:13 +00:00

15 lines
345 B
C

--- ./pcaputil.c.orig Tue Nov 14 12:51:08 2000
+++ ./pcaputil.c Mon Sep 25 16:26:13 2006
@@ -13,9 +13,10 @@
#include <stdlib.h>
#include <string.h>
#include <err.h>
-#include <pcap.h>
+#include <net/bpf.h>
+#include </usr/include/pcap.h>
#ifdef BSD
-#include <pcap-int.h>
+#include </usr/include/pcap-int.h>
#endif
#include "pcaputil.h"