X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fipc.c;h=645d4b087e735ce06d8db51fd8fa731e6345bac4;hb=43ef00c0eb99991902d3c9a5fbe582cde049b055;hp=3763f24837addb2a9b2f523093a49b745119cb78;hpb=a09f2fdf0450eb76317e1b7575a12ffb926068f4;p=collectd.git diff --git a/src/ipc.c b/src/ipc.c index 3763f248..645d4b08 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -32,6 +32,9 @@ #include "configfile.h" #if KERNEL_LINUX + /* _GNU_SOURCE is needed for struct shm_info.used_ids on musl libc */ +# define _GNU_SOURCE + /* X/OPEN tells us to use for semctl() */ /* X/OPEN tells us to use for msgctl() */ /* X/OPEN tells us to use for shmctl() */ @@ -295,7 +298,7 @@ static int ipc_read_msg (void) /* {{{ */ msg_alloc_queues++; msg_used_space += ipcinfo_msg[i].msg_cbytes; msg_qnum += ipcinfo_msg[i].msg_qnum; - + } free(ipcinfo_msg); ipc_submit_g("msg", "count", "queues", msg_alloc_queues);