buffer: fix musl
This commit is contained in:
parent
5b078136ee
commit
15449237a0
1 changed files with 13 additions and 0 deletions
13
srcpkgs/buffer/patches/musl-sem.patch
Normal file
13
srcpkgs/buffer/patches/musl-sem.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
The union semun is not defined in musl libc's sys/sem.h
|
||||
|
||||
--- sem.c 2014-11-26 23:41:09.000000000 +0100
|
||||
+++ sem.c 2016-08-12 10:14:48.225963726 +0200
|
||||
@@ -42,7 +42,7 @@
|
||||
*
|
||||
* mbuck@debian.org, 1999/08/29
|
||||
*/
|
||||
-#if defined(__GNU_LIBRARY__) && defined(_SEM_SEMUN_UNDEFINED)
|
||||
+#if !defined(__GLIBC__) || (defined(__GNU_LIBRARY__) && defined(_SEM_SEMUN_UNDEFINED))
|
||||
union semun {
|
||||
int val; /* value for SETVAL */
|
||||
struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */
|
Loading…
Reference in a new issue