mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
games/jumpy: fix build on powerpc*, probably also armv7 and aarch64
All powerpc*, armv7 and aarch64 use unsigned char.
This commit is contained in:
parent
25b402cb73
commit
40b80af5fe
2 changed files with 13 additions and 3 deletions
|
@ -13,9 +13,6 @@ LICENSE_COMB= multi
|
|||
LICENSE_FILE_MIT= ${WRKSRC}/licenses/LICENSE-MIT
|
||||
LICENSE_DISTFILES_CC-BY-NC-4.0= ${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
BROKEN_aarch64= need https://github.com/shellrow/netdev/pull/71
|
||||
BROKEN_armv7= need https://github.com/shellrow/netdev/pull/71
|
||||
|
||||
LIB_DEPENDS= libasound.so:audio/alsa-lib \
|
||||
libudev.so:devel/libudev-devd
|
||||
RUN_DEPENDS= ${LOCALBASE}/lib/alsa-lib/libasound_module_pcm_oss.so:audio/alsa-plugins \
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
--- cargo-crates/netdev-0.30.0/src/interface/unix.rs.orig 2024-12-27 16:28:59 UTC
|
||||
+++ cargo-crates/netdev-0.30.0/src/interface/unix.rs
|
||||
@@ -189,8 +189,8 @@ fn sockaddr_to_network_addr(sa: *mut libc::sockaddr) -
|
||||
if sa.is_null() {
|
||||
(None, None)
|
||||
} else if (*sa).sa_family as libc::c_int == libc::AF_LINK {
|
||||
- let nlen: i8 = (*sa).sa_data[3];
|
||||
- let alen: i8 = (*sa).sa_data[4];
|
||||
+ let nlen: c_char = (*sa).sa_data[3];
|
||||
+ let alen: c_char = (*sa).sa_data[4];
|
||||
if alen > 0 && alen as u8 + nlen as u8 + 8 <= (*sa).sa_len {
|
||||
let ptr = (*sa).sa_data.as_mut_ptr();
|
||||
let extended =
|
Loading…
Add table
Reference in a new issue