freebsd-ports/multimedia/oscam/files/patch-globals.h
Mark Felder 7010cfb067 OScam is a softcam, software to be used to decrypt digital television channels
on a settopbox (receiver), as an alternative for a conditional access module
(CAM). OScam is, compared with other softcams (CCcam, mgcamd, etc.), open source

WWW: http://www.streamboard.tv/oscam/

PR:		204029
Submitted by:	Franz Bettag <franz@bett.ag>
2015-12-02 17:11:37 +00:00

21 lines
536 B
C

--- globals.h.orig 2015-09-28 21:33:12 UTC
+++ globals.h
@@ -124,6 +124,18 @@ typedef unsigned char uchar;
#define DEFAULT_AF AF_INET
#endif
+#ifdef IPV6SUPPORT
+#if !defined s6_addr32 && defined __sun__
+# define s6_addr32 _S6_un._S6_u32
+#elif !defined s6_addr32 && ( defined __OpenBSD__ || defined __FreeBSD__ )
+# define s6_addr32 __u6_addr.__u6_addr32
+#endif /* !defined s6_addr32 */
+#endif
+
+#ifndef SOL_TCP
+# define SOL_TCP IPPROTO_TCP
+#endif
+
#ifndef NO_ENDIAN_H
#if defined(__APPLE__)
#include <machine/endian.h>