HomeFreeBSD

[libnetmap] Fix 32 bit compilation under gcc-6.4

Description

[libnetmap] Fix 32 bit compilation under gcc-6.4

Use uintptr_t to cast a uint64_t to a pointer type.
Yeah, it isn't technically correct for platforms with pointers

64 bits, but it's fine here.

This fixes 32 bit compat library builds on amd64 and also
mips32 builds.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D26790

(cherry picked from commit 26c29e743bbdbb82762540f72d4bc449bae2e092)

Details

Provenance
adrianAuthored on Nov 2 2020, 3:01 PM
rlibbyCommitted on Dec 29 2020, 11:04 PM
Reviewer
imp
Differential Revision
D26790: [libnetmap] Fix 32 bit compilation on gcc-6.3
Parents
rG62a77bb7edb2: [libsa] Fix typecast of pointer for st_dev
Branches
Unknown
Tags
Unknown