aboutsummaryrefslogtreecommitdiff
path: root/multimedia/oscam/files/patch-globals.h
diff options
context:
space:
mode:
authorMark Felder <feld@FreeBSD.org>2015-12-02 17:11:37 +0000
committerMark Felder <feld@FreeBSD.org>2015-12-02 17:11:37 +0000
commit7010cfb0677d79cb91061bec055e3ffc73317671 (patch)
tree42b8f2a3dc968d026442557d42d8ac8eb171ca6b /multimedia/oscam/files/patch-globals.h
parent9ad277832e0389c511873a48c5752c556e16adda (diff)
downloadports-7010cfb0677d79cb91061bec055e3ffc73317671.tar.gz
ports-7010cfb0677d79cb91061bec055e3ffc73317671.zip
Notes
Diffstat (limited to 'multimedia/oscam/files/patch-globals.h')
-rw-r--r--multimedia/oscam/files/patch-globals.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/multimedia/oscam/files/patch-globals.h b/multimedia/oscam/files/patch-globals.h
new file mode 100644
index 000000000000..144e1dc4eb01
--- /dev/null
+++ b/multimedia/oscam/files/patch-globals.h
@@ -0,0 +1,21 @@
+--- 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>