From: Thomas Petazzoni Date: Fri, 20 Apr 2018 10:26:33 +0000 (+0200) Subject: lxc/tools/lxc_monitor: include missing X-Git-Tag: lxc-3.1.0~325^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77d407537f57c3fb92787bdda1eeaec7941d344f;p=thirdparty%2Flxc.git lxc/tools/lxc_monitor: include missing lxc_monitor.c uses offsetof(), so it should include . Otherwise the build fails with the musl C library: tools/lxc_monitor.c: In function ‘lxc_abstract_unix_connect’: tools/lxc_monitor.c:324:9: warning: implicit declaration of function ‘offsetof’ [-Wimplicit-function-declaration] offsetof(struct sockaddr_un, sun_path) + len + 1); ^~~~~~~~ tools/lxc_monitor.c:324:18: error: expected expression before ‘struct’ offsetof(struct sockaddr_un, sun_path) + len + 1); ^~~~~~ Signed-off-by: Thomas Petazzoni --- diff --git a/src/lxc/tools/lxc_monitor.c b/src/lxc/tools/lxc_monitor.c index 72dca8e21..c60e14ff5 100644 --- a/src/lxc/tools/lxc_monitor.c +++ b/src/lxc/tools/lxc_monitor.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include