diff options
| author | Renato Botelho <garga@FreeBSD.org> | 2014-04-23 14:24:13 +0000 |
|---|---|---|
| committer | Renato Botelho <garga@FreeBSD.org> | 2014-04-23 14:24:13 +0000 |
| commit | e7fef78c99e87a86240917fc9427865a37ee128f (patch) | |
| tree | 993c6d336bb43a4c743b7a138f7dafc73f8c4220 | |
| parent | Update gstreamer 1.0 ports to version 1.2.4. (diff) | |
Fix build with clang:
. Add direct dependency to net/bpf.h
. Rename symbol csin to avoid conflict with complex.h
Approved by: portmgr (blanket)
| -rw-r--r-- | security/dsniff/Makefile | 3 | ||||
| -rw-r--r-- | security/dsniff/files/patch-pcaputil.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/security/dsniff/Makefile b/security/dsniff/Makefile index 3589c09f51a1..ec3a6708c0f1 100644 --- a/security/dsniff/Makefile +++ b/security/dsniff/Makefile @@ -55,6 +55,9 @@ post-patch: s|(LNETINC=).*|\1${LIBNET_INC}|; \ s|(LNETLIB=).*|\1${LIBNET_LIB}|' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} + @${REINPLACE_CMD} -e 's,csin,_csin,g' \ + ${WRKSRC}/webmitm.c \ + ${WRKSRC}/sshmitm.c .if !empty(LIBNIDS_GLIB2) pre-configure: diff --git a/security/dsniff/files/patch-pcaputil.c b/security/dsniff/files/patch-pcaputil.c index c8cc52011716..654e90a77162 100644 --- a/security/dsniff/files/patch-pcaputil.c +++ b/security/dsniff/files/patch-pcaputil.c @@ -1,10 +1,11 @@ --- ./pcaputil.c.orig Tue Nov 14 12:51:08 2000 +++ ./pcaputil.c Mon Sep 25 16:26:13 2006 -@@ -13,9 +13,9 @@ +@@ -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> |
