Util: RingFIFO build fix
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Oct 2015 18:47:48 -0700
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
src/util/ring-fifo.c
→
src/util/ring-fifo.c
@@ -5,6 +5,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "ring-fifo.h" +#include "util/memory.h" + void RingFIFOInit(struct RingFIFO* buffer, size_t capacity, size_t maxalloc) { buffer->data = anonymousMemoryMap(capacity); buffer->capacity = capacity;@@ -13,7 +15,7 @@ RingFIFOClear(buffer);
} void RingFIFODeinit(struct RingFIFO* buffer) { - memoryMapFree(buffer->data, buffer->capacity); + mappedMemoryFree(buffer->data, buffer->capacity); buffer->data = 0; }