[lxc-devel] [lxc/lxc] 77d407: lxc/tools/lxc_monitor: include missing <stddef.h>
GitHub
noreply at github.com
Fri Apr 20 11:00:09 UTC 2018
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 77d407537f57c3fb92787bdda1eeaec7941d344f
https://github.com/lxc/lxc/commit/77d407537f57c3fb92787bdda1eeaec7941d344f
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date: 2018-04-20 (Fri, 20 Apr 2018)
Changed paths:
M src/lxc/tools/lxc_monitor.c
Log Message:
-----------
lxc/tools/lxc_monitor: include missing <stddef.h>
lxc_monitor.c uses offsetof(), so it should include
<stddef.h>. 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 <thomas.petazzoni at bootlin.com>
Commit: 5dfc91865bb1cf0b153f1494d54857373acd6598
https://github.com/lxc/lxc/commit/5dfc91865bb1cf0b153f1494d54857373acd6598
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2018-04-20 (Fri, 20 Apr 2018)
Changed paths:
M src/lxc/tools/lxc_monitor.c
Log Message:
-----------
Merge pull request #2285 from tpetazzoni/offsetof-stddef-fix
lxc/tools/lxc_monitor: include missing <stddef.h>
Compare: https://github.com/lxc/lxc/compare/7d675310aed7...5dfc91865bb1
More information about the lxc-devel
mailing list