mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 23:39:20 -04:00
supported on FreeBSD 9.3, 10.1, and 10.2. "patch-src_dvbcut.cpp" restores the code as it was in version 0.7.0. That patch shall be removed from the port in 2017, when the affected FreeBSD versions have reached EoL. Approved by: antoine (implicit)
14 lines
365 B
C
14 lines
365 B
C
--- src/defines.h.orig 2016-11-18 13:31:01 UTC
|
|
+++ src/defines.h
|
|
@@ -42,6 +42,11 @@ static inline int videostream(int s=0)
|
|
#endif
|
|
}
|
|
|
|
+#ifdef __FreeBSD__
|
|
+#define __bswap_32(x) __bswap32(x)
|
|
+#define __bswap_16(x) __bswap16(x)
|
|
+#endif
|
|
+
|
|
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
#define mbo32(x) \
|
|
((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \
|