summaryrefslogtreecommitdiff
path: root/multimedia/vdr-plugin-control/files/patch-telnet.c
diff options
context:
space:
mode:
authorJuergen Lock <nox@FreeBSD.org>2011-03-26 19:16:54 +0000
committerJuergen Lock <nox@FreeBSD.org>2011-03-26 19:16:54 +0000
commit8404535fe74a67d790ed45578c84a27576a768cd (patch)
tree9cbe5947f1bc52ab10beb32932bf91db092d18cf /multimedia/vdr-plugin-control/files/patch-telnet.c
parentPreliminary port of the vdr development branch, use at your own risk! :) (diff)
http://www.linuxtv.org/vdrwiki/index.php/Control-plugin
The 'control' plugin brings the ability to VDR to control the whole OSD over a telnet client. To reach this, 'control' listens on a network socket (default is port 2002). If a client wants to connect, VDR checks if that client is allowed to connect to VDR (see in the documentation of VDR about the svdrphosts.conf file for more info). If the connection is etablished, 'control' sends the curent OSD state to the client. Also all key strokes at the client side are redirected to VDR. WWW: http://ricomp.de/vdr/down_en.html
Diffstat (limited to 'multimedia/vdr-plugin-control/files/patch-telnet.c')
-rw-r--r--multimedia/vdr-plugin-control/files/patch-telnet.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/multimedia/vdr-plugin-control/files/patch-telnet.c b/multimedia/vdr-plugin-control/files/patch-telnet.c
new file mode 100644
index 000000000000..388224714293
--- /dev/null
+++ b/multimedia/vdr-plugin-control/files/patch-telnet.c
@@ -0,0 +1,14 @@
+--- a/telnet.c
++++ b/telnet.c
+@@ -12,7 +12,11 @@
+
+
+
++#ifdef __FreeBSD__
++#include <stdlib.h>
++#else
+ #include <malloc.h>
++#endif
+ #include <string.h>
+ //#include <sys/socket.h>
+