aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/vdr-plugin-vnsiserver/files/patch-responsepacket.c
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/vdr-plugin-vnsiserver/files/patch-responsepacket.c')
-rw-r--r--multimedia/vdr-plugin-vnsiserver/files/patch-responsepacket.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/multimedia/vdr-plugin-vnsiserver/files/patch-responsepacket.c b/multimedia/vdr-plugin-vnsiserver/files/patch-responsepacket.c
index 2fce82ada736..952dc5b12eb9 100644
--- a/multimedia/vdr-plugin-vnsiserver/files/patch-responsepacket.c
+++ b/multimedia/vdr-plugin-vnsiserver/files/patch-responsepacket.c
@@ -1,10 +1,18 @@
--- a/responsepacket.c
+++ b/responsepacket.c
-@@ -27,6 +27,7 @@
+@@ -31,8 +31,15 @@
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
+#include <inttypes.h>
++#ifndef __FreeBSD__
+ #include <asm/byteorder.h>
++#else
++#include <sys/endian.h>
++#define __be64_to_cpu be64toh
++#define __cpu_to_be64 htobe64
++#endif
+
#include "responsepacket.h"
- #include "vdrcommand.h"
+ #include "vnsicommand.h"