diff --git a/controller/ringbuffer.c b/controller/ringbuffer.c index 755a1cc..03c76cd 100644 --- a/controller/ringbuffer.c +++ b/controller/ringbuffer.c @@ -1,3 +1,5 @@ +#include "ringbuffer.h" + void _ringBufferIncReader(struct ringBuffer *buf) { buf->reader += buf->blockSize; if (buf->reader >= buf->buffer + buf->blocks * buf->blockSize) { diff --git a/controller/ringbuffer.h b/controller/ringbuffer.h index 9168b6d..4c19bd3 100644 --- a/controller/ringbuffer.h +++ b/controller/ringbuffer.h @@ -1,4 +1,6 @@ #include +#include +#include #ifdef RINGBUFFER_THREAD_SAFE #include