aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/HttpdInternal.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/output/HttpdInternal.hxx')
-rw-r--r--src/output/HttpdInternal.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output/HttpdInternal.hxx b/src/output/HttpdInternal.hxx
index 5a9ef8c19..8d35d35e9 100644
--- a/src/output/HttpdInternal.hxx
+++ b/src/output/HttpdInternal.hxx
@@ -30,6 +30,7 @@
#include "thread/Mutex.hxx"
#include "event/ServerSocket.hxx"
#include "event/DeferredMonitor.hxx"
+#include "util/Cast.hxx"
#ifdef _LIBCPP_VERSION
/* can't use incomplete template arguments with libc++ */
@@ -157,7 +158,7 @@ public:
#endif
static constexpr HttpdOutput *Cast(audio_output *ao) {
- return (HttpdOutput *)((char *)ao - offsetof(HttpdOutput, base));
+ return ContainerCast(ao, HttpdOutput, base);
}
#if GCC_CHECK_VERSION(4,6) || defined(__clang__)