aboutsummaryrefslogtreecommitdiff
path: root/net/trickle/files/patch-trickle-overload.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/trickle/files/patch-trickle-overload.c')
-rw-r--r--net/trickle/files/patch-trickle-overload.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/net/trickle/files/patch-trickle-overload.c b/net/trickle/files/patch-trickle-overload.c
new file mode 100644
index 000000000000..268b73403a0c
--- /dev/null
+++ b/net/trickle/files/patch-trickle-overload.c
@@ -0,0 +1,55 @@
+/*
+ * Enable the recv() and send(), I am not sure why it was disabled on FreeBSD
+ * only but allow other OSs. It works great as I have tested it with a few
+ * of applications on FreeBSD 6.0. If anyone know why, please let me know.
+ */
+--- trickle-overload.c.orig Sun May 7 23:05:43 2006
++++ trickle-overload.c Sun May 7 23:07:06 2006
+@@ -197,15 +197,11 @@
+
+ GETADDR(read);
+ GETADDR(readv);
+-#ifndef __FreeBSD__
+ GETADDR(recv);
+-#endif /* !__FreeBSD__ */
+ GETADDR(recvfrom);
+
+ GETADDR(writev);
+-#ifndef __FreeBSD__
+ GETADDR(send);
+-#endif /* !__FreeBSD__ */
+ GETADDR(sendto);
+
+ GETADDR(select);
+@@ -627,7 +623,6 @@
+ return (ret);
+ }
+
+-#ifndef __FreeBSD__
+ ssize_t
+ recv(int sock, void *buf, size_t len, int flags)
+ {
+@@ -649,7 +644,6 @@
+
+ return (ret);
+ }
+-#endif /* !__FreeBSD__ */
+
+ #ifdef __sun__
+ ssize_t
+@@ -730,7 +724,6 @@
+ return (ret);
+ }
+
+-#ifndef __FreeBSD__
+ ssize_t
+ send(int sock, const void *buf, size_t len, int flags)
+ {
+@@ -752,7 +745,6 @@
+
+ return (ret);
+ }
+-#endif /* !__FreeBSD__ */
+
+ ssize_t
+ sendto(int sock, const void *buf, size_t len, int flags, const struct sockaddr *to,