1 empty uses SysV semaphores, so the ifdef is wrong here.
3 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
5 --- empty-0.6.19b.orig/empty.c 2012-09-19 13:24:05.000000000 +0200
6 +++ empty-0.6.19b/empty.c 2015-07-09 02:00:09.000000000 +0200
7 @@ -179,25 +179,23 @@ int main (int argc, char *argv[]) {
11 -#ifdef _POSIX_SEMAPHORES
12 - #if defined(__linux__) && defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
13 - /* union semun is defined by including <sys/sem.h> */
17 - struct semid_ds *buf;
25 - unsigned short *array;
26 - struct seminfo *__buf; /* buffer for IPC_INFO */
30 +#if defined(__linux__) && defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED)
31 + /* union semun is defined by including <sys/sem.h> */
35 + struct semid_ds *buf;
43 + unsigned short *array;
44 + struct seminfo *__buf; /* buffer for IPC_INFO */