diff --git a/packages/multimedia/libhdhomerun/patches/libhdhomerun-pr19-fix-gcc-8.3.0-build.patch b/packages/multimedia/libhdhomerun/patches/libhdhomerun-pr19-fix-gcc-8.3.0-build.patch new file mode 100644 index 0000000000..71065d14fe --- /dev/null +++ b/packages/multimedia/libhdhomerun/patches/libhdhomerun-pr19-fix-gcc-8.3.0-build.patch @@ -0,0 +1,24 @@ +From a83ec0c045d3fadb78a879d0ac8ae999b89786df Mon Sep 17 00:00:00 2001 +From: fuzzard +Date: Sun, 24 Feb 2019 07:47:31 +1000 +Subject: [PATCH] alignas c++ fix + +alignas is a keyword in c++. Dont define. +Change is in windows header already, and GCC 8.3.0 is erroring on this now. +--- + hdhomerun_os_posix.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/hdhomerun_os_posix.h b/hdhomerun_os_posix.h +index baab8e5..d3dc5cb 100644 +--- a/hdhomerun_os_posix.h ++++ b/hdhomerun_os_posix.h +@@ -53,7 +53,7 @@ typedef struct { + + #define LIBHDHOMERUN_API + +-#if !defined(alignas) ++#if !defined(alignas) && !defined(__cplusplus) + #define alignas(n) __attribute__((aligned(n))) + #endif +