summaryrefslogtreecommitdiff
path: root/net/ettercap
diff options
context:
space:
mode:
authoratatat <atatat@pkgsrc.org>2002-11-06 19:13:29 +0000
committeratatat <atatat@pkgsrc.org>2002-11-06 19:13:29 +0000
commita964d3fb71ca5cb3aa689bac01c4747a4c271de8 (patch)
treea60c571dfd66f0572a3174f07fbd588577b233ea /net/ettercap
parent58223019747a8080c8392293d81a834668498fd4 (diff)
downloadpkgsrc-a964d3fb71ca5cb3aa689bac01c4747a4c271de8.tar.gz
It seems that when kqueue was merged to the trunk, sys/select.h
was altered to include sys/queue.h, which supplies a pile of macros and defines _SYS_QUEUE_H_. Prior to this change, ettercap was able to pull in its own ec_queue.h file to define these macros (and the missing ones below) and also define _SYS_QUEUE_H_. The two macros listed below are not in our definition of the macros, so we define them manually later, if they're not defined by the include files.
Diffstat (limited to 'net/ettercap')
-rw-r--r--net/ettercap/distinfo3
-rw-r--r--net/ettercap/patches/patch-ab32
2 files changed, 34 insertions, 1 deletions
diff --git a/net/ettercap/distinfo b/net/ettercap/distinfo
index 1d623b62905..e2a7271dcfe 100644
--- a/net/ettercap/distinfo
+++ b/net/ettercap/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2002/06/05 00:29:02 hubertf Exp $
+$NetBSD: distinfo,v 1.3 2002/11/06 19:13:29 atatat Exp $
SHA1 (ettercap-0.6.6.6.tar.gz) = a76cb193adb9a92f07c4999097e5ad76dfc37c28
Size (ettercap-0.6.6.6.tar.gz) = 558542 bytes
SHA1 (patch-aa) = faf5044190e8f30e0490238d276ff65a8c5bfb98
+SHA1 (patch-ab) = 107ef5dda9457313d7d939745a6a21dbe2b989ce
diff --git a/net/ettercap/patches/patch-ab b/net/ettercap/patches/patch-ab
new file mode 100644
index 00000000000..b1ed3b1a2d6
--- /dev/null
+++ b/net/ettercap/patches/patch-ab
@@ -0,0 +1,32 @@
+$NetBSD: patch-ab,v 1.1 2002/11/06 19:13:29 atatat Exp $
+
+It seems that when kqueue was merged to the trunk, sys/select.h
+was altered to include sys/queue.h, which supplies a pile of macros
+and defines _SYS_QUEUE_H_. Prior to this change, ettercap was able
+to pull in its own ec_queue.h file to define these macros (and the
+missing ones below) and also define _SYS_QUEUE_H_. The two macros
+listed below are not in our definition of the macros, so we define
+them manually later, if they're not defined by the include files.
+
+--- src/include/ec_main.h.orig Mon Nov 4 14:45:27 2002
++++ src/include/ec_main.h
+@@ -44,6 +44,19 @@
+
+ #include "ec_stdint.h"
+
++#ifndef LIST_REPLACE
++#define LIST_REPLACE(elm, elm2, field) do { \
++ if (((elm2)->field.le_next = (elm)->field.le_next) != NULL) \
++ (elm2)->field.le_next->field.le_prev = \
++ &(elm2)->field.le_next; \
++ (elm2)->field.le_prev = (elm)->field.le_prev; \
++ *(elm2)->field.le_prev = (elm2); \
++} while (0)
++#endif /* !defined(LIST_REPLACE) */
++
++#ifndef LIST_END
++#define LIST_END(head) NULL
++#endif /* !defined(LIST_END) */
+
+ #ifdef HAVE_PDCURSES
+ #undef MOUSE_MOVED