--- ../busybox-1.23.2.orig/util-linux/ipcrm.c 2015-03-23 06:06:55.000000000 +0300 +++ ./util-linux/ipcrm.c 2015-09-26 01:40:10.423553415 +0300 @@ -22,11 +22,12 @@ /* X/OPEN tells us to use for semctl() */ /* X/OPEN tells us to use for msgctl() */ #include -#include -#include -#include +#include +#include +#include -#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) +#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || \ + defined(__ANDROID__) /* union semun is defined by including */ #else /* according to X/OPEN we have to define it ourselves */ --- ../busybox-1.23.2.orig/util-linux/ipcs.c 2015-03-23 06:06:55.000000000 +0300 +++ ./util-linux/ipcs.c 2015-09-26 01:40:18.347657613 +0300 @@ -29,9 +29,9 @@ /* X/OPEN tells us to use for shmctl() */ #include #include -#include -#include -#include +#include +#include +#include #include "libbb.h" @@ -77,7 +77,8 @@ /* The last arg of semctl is a union semun, but where is it defined? X/OPEN tells us to define it ourselves, but until recently Linux include files would also define it. */ -#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) +#if (defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)) || \ + defined(__ANDROID__) /* union semun is defined by including */ #else /* according to X/OPEN we have to define it ourselves */