From cbf3ef288f5ccf8b5123896186272ab33ee7ed62 Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Tue, 21 Feb 2017 15:31:24 +0100 Subject: [PATCH] Explicitly define USE_LOCKS to 0 in dlmalloc Clang 3.9 does not parse the default value of USE_LOCKS (0). This change explicitly sets the value to 0 to appease the compiler. No functional change intended. --- kernel/malloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/malloc.c b/kernel/malloc.c index 0ffafe01..b7f58b2e 100644 --- a/kernel/malloc.c +++ b/kernel/malloc.c @@ -55,6 +55,7 @@ #define LACKS_SCHED_H #define LACKS_TIME_H #define MALLOC_FAILURE_ACTION +#define USE_LOCKS 0 /* return values from posix_memalign() */ #define ENOMEM -1 /* Out of memory */