From ed63e01a2682249b889c2e33d849001dc66f0d25 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 28 Aug 2015 19:15:09 +0200 Subject: everything except mds-kkbd and mds-vt compiles with musl; mds-kkbd and mds-vt does not because they require headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libmdsserver/linked-list.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/libmdsserver/linked-list.h') 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) -- cgit v1.2.3-70-g09d2