summaryrefslogtreecommitdiff
path: root/net/udpcast/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/udpcast/files')
-rw-r--r--net/udpcast/files/patch-libbb_udpcast.h13
-rw-r--r--net/udpcast/files/patch-participants.h13
-rw-r--r--net/udpcast/files/patch-rateGovernor.c28
-rw-r--r--net/udpcast/files/patch-socklib.c46
-rw-r--r--net/udpcast/files/patch-udpr-negotiate.c29
5 files changed, 0 insertions, 129 deletions
diff --git a/net/udpcast/files/patch-libbb_udpcast.h b/net/udpcast/files/patch-libbb_udpcast.h
deleted file mode 100644
index 1f2289b163ae..000000000000
--- a/net/udpcast/files/patch-libbb_udpcast.h
+++ /dev/null
@@ -1,13 +0,0 @@
---- libbb_udpcast.h.orig 2009-02-10 10:07:40.000000000 +0100
-+++ libbb_udpcast.h 2009-02-10 10:06:51.000000000 +0100
-@@ -24,6 +24,10 @@
- #include <malloc.h>
- #endif
-
-+#ifdef HAVE_STDLIB_H
-+ #include <stdlib.h>
-+#endif
-+
- #define xmalloc malloc
-
- #endif /* BB_VER */
diff --git a/net/udpcast/files/patch-participants.h b/net/udpcast/files/patch-participants.h
deleted file mode 100644
index 6e7ef8da3d7f..000000000000
--- a/net/udpcast/files/patch-participants.h
+++ /dev/null
@@ -1,13 +0,0 @@
---- participants.h.orig 2005-12-22 23:59:18.000000000 +0100
-+++ participants.h 2009-02-05 12:18:19.000000000 +0100
-@@ -3,6 +3,10 @@
-
- #define MAX_CLIENTS 1024
-
-+#include <sys/types.h>
-+#include <sys/socket.h>
-+
-+
- typedef struct participantsDb *participantsDb_t;
-
- #define isParticipantValid udpc_isParticipantValid
diff --git a/net/udpcast/files/patch-rateGovernor.c b/net/udpcast/files/patch-rateGovernor.c
deleted file mode 100644
index 14de493ebb02..000000000000
--- a/net/udpcast/files/patch-rateGovernor.c
+++ /dev/null
@@ -1,28 +0,0 @@
---- rateGovernor.c.orig 2008-09-20 09:07:29.000000000 +0200
-+++ rateGovernor.c 2009-02-09 08:20:17.000000000 +0100
-@@ -23,6 +23,25 @@
- #define DL_RATE_GOVERNOR
- #endif
-
-+
-+#ifdef __FreeBSD__
-+char *
-+strndup(const char *str, size_t n)
-+{
-+ size_t len;
-+ char *copy;
-+
-+ for (len = 0; len < n && str[len]; len++)
-+ continue;
-+
-+ if ((copy = malloc(len + 1)) == NULL)
-+ return (NULL);
-+ memcpy(copy, str, len);
-+ copy[len] = '\0';
-+ return (copy);
-+}
-+#endif
-+
- void *rgInitGovernor(struct net_config *cfg, struct rateGovernor_t *gov)
- {
- if(cfg->nrGovernors == MAX_GOVERNORS) {
diff --git a/net/udpcast/files/patch-socklib.c b/net/udpcast/files/patch-socklib.c
deleted file mode 100644
index 974921257f31..000000000000
--- a/net/udpcast/files/patch-socklib.c
+++ /dev/null
@@ -1,46 +0,0 @@
---- socklib.c.orig 2008-09-18 22:43:15.000000000 +0200
-+++ socklib.c 2009-02-10 10:01:40.000000000 +0100
-@@ -18,6 +18,7 @@
- #endif
-
- #ifdef HAVE_NET_IF_H
-+# include <sys/socket.h>
- # include <net/if.h>
- #endif
-
-@@ -66,6 +67,8 @@
- # define DEBUG 0
- #endif
-
-+#undef SIOCGIFINDEX
-+
- #ifdef LOSSTEST
- /**
- * Packet loss/swap testing...
-@@ -353,7 +356,7 @@
-
- int setTtl(int sock, int ttl) {
- /* set the socket to broadcast */
-- return setsockopt(sock, SOL_IP, IP_MULTICAST_TTL, (char*)&ttl, sizeof(int));
-+ return setsockopt(sock, IPPROTO_IP, IP_MULTICAST_TTL, (char*)&ttl, sizeof(int));
- }
-
- #ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX
-@@ -422,7 +425,7 @@
-
-
- int setMcastDestination(int sock, net_if_t *net_if, struct sockaddr_in *addr) {
--#ifdef WINDOWS
-+#if defined(WINDOWS) || defined(__FreeBSD__)
- int r;
- struct sockaddr_in interface_addr;
- struct in_addr if_addr;
-@@ -720,7 +723,7 @@
-
- net_if->name = strdup(chosen->ifr_name);
-
--#ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX
-+#ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX__TODO
- /* Index for multicast subscriptions */
- if(ioctl(s, SIOCGIFINDEX, chosen) < 0)
- udpc_fatal(-1, "Error getting index for %s: %s", net_if->name,
diff --git a/net/udpcast/files/patch-udpr-negotiate.c b/net/udpcast/files/patch-udpr-negotiate.c
deleted file mode 100644
index c1a1fddbd386..000000000000
--- a/net/udpcast/files/patch-udpr-negotiate.c
+++ /dev/null
@@ -1,29 +0,0 @@
---- udpr-negotiate.c.orig 2007-05-25 12:01:59.000000000 +0200
-+++ udpr-negotiate.c 2009-02-06 08:18:02.000000000 +0100
-@@ -3,6 +3,10 @@
- #include <errno.h>
- #include <sys/stat.h>
-
-+#if (defined(__unix__) || defined(unix)) && !defined(USG)
-+#include <sys/param.h>
-+#endif
-+
- #include "log.h"
- #include "socklib.h"
- #include "udpcast.h"
-@@ -82,13 +86,13 @@
- if(disk_config->fileName != NULL) {
- int oflags = O_CREAT | O_WRONLY;
- if((disk_config->flags & FLAG_SYNC)) {
-- oflags |= O_SYNC;
-+ oflags |= O_FSYNC;
- } else if( !(disk_config->flags & FLAG_NOSYNC)) {
- struct stat buf;
- if(stat(disk_config->fileName, &buf) == 0) {
- /* If target is device, open it synchronously */
- if(S_ISCHR(buf.st_mode) || S_ISBLK(buf.st_mode))
-- oflags |= O_SYNC;
-+ oflags |= O_FSYNC;
- }
- }
- outFile = open(disk_config->fileName, oflags | O_BINARY, 0644);