summaryrefslogtreecommitdiff
path: root/source/fitz/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/memory.c')
-rw-r--r--source/fitz/memory.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/fitz/memory.c b/source/fitz/memory.c
index b935853d..41543112 100644
--- a/source/fitz/memory.c
+++ b/source/fitz/memory.c
@@ -1,4 +1,5 @@
#include "mupdf/fitz.h"
+#include "fitz-imp.h"
#include <string.h>
#include <stdlib.h>
@@ -326,7 +327,7 @@ static int find_context(fz_context *ctx)
* threads trying here too though so, so claim it
* atomically. No one has locked on this context
* before, so we are safe to take the ALLOC lock. */
- ctx->locks->lock(ctx->locks->user, FZ_LOCK_ALLOC);
+ ctx->locks.lock(ctx->locks.user, FZ_LOCK_ALLOC);
/* If it's still free, then claim it as ours,
* otherwise we'll keep hunting. */
if (fz_lock_debug_contexts[i] == NULL)
@@ -342,7 +343,7 @@ static int find_context(fz_context *ctx)
}
#endif
}
- ctx->locks->unlock(ctx->locks->user, FZ_LOCK_ALLOC);
+ ctx->locks.unlock(ctx->locks.user, FZ_LOCK_ALLOC);
if (gottit)
return i;
}