summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bae4500)
raw | patch | inline | side by side (parent: bae4500)
author | Natanael Copa <ncopa@alpinelinux.org> | |
Wed, 5 Aug 2015 06:48:08 +0000 (08:48 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 5 Aug 2015 08:55:07 +0000 (10:55 +0200) |
This fixes compile the compile error:
> ipc.c:154:49: error: 'struct shm_info' has no member named 'used_ids'
> ipc_submit_g("shm", "segments", NULL, shm_info.used_ids);
> ^
Fixes #1147
> ipc.c:154:49: error: 'struct shm_info' has no member named 'used_ids'
> ipc_submit_g("shm", "segments", NULL, shm_info.used_ids);
> ^
Fixes #1147
src/ipc.c | patch | blob | history |
diff --git a/src/ipc.c b/src/ipc.c
index 3763f24837addb2a9b2f523093a49b745119cb78..b4038472efb76e4ff48df62e95b91307a8ff2dfc 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
#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 <sys/{types,ipc,sem}.h> for semctl() */
/* X/OPEN tells us to use <sys/{types,ipc,msg}.h> for msgctl() */
/* X/OPEN tells us to use <sys/{types,ipc,shm}.h> for shmctl() */