From c05056343b56be65ae887f8b7ead61a8072622b9 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 5 Aug 2019 15:02:05 +0200 Subject: [PATCH] Fix building on OS X (missing NULL in queue.h) Headers seem to be a bit different in Apple land and you need to include stddef.h explicitly to the NULL declaration. This also makes the code a bit more correct, as stddef.h is the header in the C standard that defines NULL (https://en.cppreference.com/w/cpp/header/cstddef). --- app/src/queue.h | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/queue.h b/app/src/queue.h index 229ddb87..ed3d4c21 100644 --- a/app/src/queue.h +++ b/app/src/queue.h @@ -3,6 +3,7 @@ #define QUEUE_H #include +#include #include // To define a queue type of "struct foo":