Skip to content

Commit 202a0fe

Browse files
committed
cpuid.c: use off_t instead of off64_t
For compatibility with musl libc. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
1 parent 35e24b5 commit 202a0fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpuid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static inline BOOL cpuid(uint32_t *_eax, uint32_t *_ebx, uint32_t *_ecx, uint32_
165165
#ifdef __linux__
166166
BOOL cpuid_kernel(struct cpu_regs_t *regs, struct cpuid_state_t *state)
167167
{
168-
off64_t offset = ((off64_t)regs->ecx << 32) + regs->eax;
168+
off_t offset = ((off_t)regs->ecx << 32) + regs->eax;
169169
char path[32];
170170
BOOL ret = FALSE;
171171
static int fd = -1;

0 commit comments

Comments
 (0)