diff options
author | Mattias Andrée <maandree@kth.se> | 2022-06-10 21:10:31 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-06-10 21:10:31 +0200 |
commit | 42ae2010eb816fad62d2ecbaa117bf0d37b262e1 (patch) | |
tree | ac5920df84123ce066d7d3c7fef851dee592fcdb | |
parent | Fix install path for license (diff) | |
download | bus-42ae2010eb816fad62d2ecbaa117bf0d37b262e1.tar.gz bus-42ae2010eb816fad62d2ecbaa117bf0d37b262e1.tar.bz2 bus-42ae2010eb816fad62d2ecbaa117bf0d37b262e1.tar.xz |
Assume libc (correctly) does not define union semun3.1.9
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | libbus.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -4,3 +4,5 @@ MANPREFIX = $(PREFIX)/share/man CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE CFLAGS = -std=c99 -Wall -Wextra -pedantic -O2 $(CPPFLAGS) LDFLAGS = -s -lrt + +# Add -DSEMUN_ALREADY_DEFINED to CPPFLAGS if `union semun` is already defined by libc @@ -196,7 +196,7 @@ -#ifdef _SEM_SEMUN_UNDEFINED +#ifndef SEMUN_ALREADY_DEFINED union semun { int val; struct semid_ds *buf; |