Skip to content

Commit 53f7816

Browse files
popcornmixpelwell
authored andcommitted
vclog: Fix compile issues on musl
See: #14
1 parent caf3cb2 commit 53f7816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vclog/vcdbg.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Copyright (c) 2022, Joanna Rousseau - Raspberry Pi Ltd All rights reserved.
88
*******************************************************************************/
99
#include <assert.h>
10-
#include <bits/types.h>
10+
#include <sys/types.h>
1111
#include <ctype.h>
1212
#include <errno.h>
1313
#include <fcntl.h>
@@ -203,7 +203,7 @@ int32_t main(int32_t argc, char *argv[]) {
203203
/* Get a virtual memory ptr so point at the same adress as VC physical
204204
address (where all logs begin)*/
205205
char *mmaped_all_logs_hdr = mmap(NULL, all_logs_size, PROT_READ, MAP_PRIVATE,
206-
dev_mem, (off_t)logs_start);
206+
dev_mem, (uintptr_t)logs_start);
207207

208208
/* file descriptor can be immediately closed without affecting mmap */
209209
close(dev_mem);

0 commit comments

Comments
 (0)