aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2012-04-11 00:02:36 +0800
committersunpoet <sunpoet@FreeBSD.org>2012-04-11 00:02:36 +0800
commitab7acfdebbe68558174a6b6604bb0ba32b2638e6 (patch)
tree5b05b955fd294aaba683ab69ba252fc1f69eb186 /net-mgmt
parent7c46fe2769fb5e07591000aa1ec9001b3ba46765 (diff)
downloadfreebsd-ports-gnome-ab7acfdebbe68558174a6b6604bb0ba32b2638e6.tar.gz
freebsd-ports-gnome-ab7acfdebbe68558174a6b6604bb0ba32b2638e6.tar.zst
freebsd-ports-gnome-ab7acfdebbe68558174a6b6604bb0ba32b2638e6.zip
- Fix build with clang
PR: ports/166377 Submitted by: Niclas Zeising <zeising@daemonic.se>
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/ettercap/files/patch-configure63
1 files changed, 56 insertions, 7 deletions
diff --git a/net-mgmt/ettercap/files/patch-configure b/net-mgmt/ettercap/files/patch-configure
index 004fbb2716d5..d0b31d5afa08 100644
--- a/net-mgmt/ettercap/files/patch-configure
+++ b/net-mgmt/ettercap/files/patch-configure
@@ -1,6 +1,15 @@
---- configure.orig 2012-01-03 10:07:17.000000000 +0800
-+++ configure 2012-02-02 03:41:52.196909256 +0800
-@@ -15293,22 +15293,23 @@
+--- configure.orig 2011-12-06 07:01:58.000000000 +0800
++++ configure 2012-04-10 03:00:36.554106808 +0800
+@@ -15038,7 +15038,7 @@
+
+ #include <arpa/nameser.h>
+
+- int main()
++ int main(int argc, char *argv[])
+ {
+ int i;
+ char *p = "\x01\x02\x03\x04";
+@@ -15285,22 +15285,23 @@
return 0;
}
_ACEOF
@@ -40,7 +49,7 @@
if ${ac_cv_search_pthread_create+:} false; then :
else
-@@ -15384,10 +15385,10 @@
+@@ -15376,10 +15377,10 @@
fi
elif test "$OS" = "MACOSX"; then
@@ -54,7 +63,47 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -16387,14 +16388,14 @@
+@@ -15389,11 +15390,8 @@
+ main ()
+ {
+
+- int main(int argc, char **argv)
+- {
+ pthread_create(NULL, NULL, NULL, NULL);
+ return 0;
+- }
+
+ ;
+ return 0;
+@@ -15798,13 +15796,10 @@
+ main ()
+ {
+
+- int main(int argc, char **argv)
+- {
+ char *q;
+ char p[NS_MAXDNAME];
+
+ dn_expand(q, q, q, p, sizeof(p));
+- }
+
+ ;
+ return 0;
+@@ -15900,13 +15895,10 @@
+ main ()
+ {
+
+- int main(int argc, char **argv)
+- {
+ char *q;
+ char p[NS_MAXDNAME];
+
+ __dn_expand(q, q, q, p, sizeof(p));
+- }
+
+ ;
+ return 0;
+@@ -16379,14 +16371,14 @@
;;
no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
@@ -71,7 +120,7 @@
ac_ec_debug=no
fi
-@@ -16544,7 +16545,7 @@
+@@ -16536,7 +16528,7 @@
OLDLDFLAGS="${LDFLAGS}"
OLDLIBS="${LIBS}"
@@ -80,7 +129,7 @@
LIBS="$LIBS"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_datalink_val_to_description in -lwpcap" >&5
$as_echo_n "checking for pcap_datalink_val_to_description in -lwpcap... " >&6; }
-@@ -17002,6 +17003,14 @@
+@@ -16994,6 +16986,14 @@