diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-08-28 19:15:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-08-28 19:15:09 +0200 |
commit | ed63e01a2682249b889c2e33d849001dc66f0d25 (patch) | |
tree | 7aaf73243fee554b40f496b261e5390a9174260c /src/libmdsserver/linked-list.h | |
parent | doc proto-util (diff) | |
download | mds-ed63e01a2682249b889c2e33d849001dc66f0d25.tar.gz mds-ed63e01a2682249b889c2e33d849001dc66f0d25.tar.bz2 mds-ed63e01a2682249b889c2e33d849001dc66f0d25.tar.xz |
everything except mds-kkbd and mds-vt compiles with musl; mds-kkbd and mds-vt does not because they require <linux/> headers
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/libmdsserver/linked-list.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libmdsserver/linked-list.h b/src/libmdsserver/linked-list.h index a99204c..b7bcefb 100644 --- a/src/libmdsserver/linked-list.h +++ b/src/libmdsserver/linked-list.h @@ -46,11 +46,7 @@ /** * Sentinel value indicating that the position is unused */ -#if __WORDSIZE == 64 -# define LINKED_LIST_UNUSED (-__INT64_C(9223372036854775807) - 1) -#else -# define LINKED_LIST_UNUSED (-2147483647 - 1) -#endif +#define LINKED_LIST_UNUSED (-((ssize_t)(SIZE_MAX >> 1)) - 1) |