OpenOrbis / musl

A PS4 port of musl for the OpenOrbis PS4 Toolchain.
Other
34 stars 9 forks source link

use SYS_lstat syscall that matches with current def of 'struct stat' #15

Closed john-tornblom closed 2 years ago

john-tornblom commented 3 years ago

musl will use the SYS_lstat if SYS_stat is not defined. The SYS_stat syscall is working fine on the PS4, but expects and older version of 'struct stat' (available in recent versions of freebsd under the name 'struct ostat')

struct ostat is defined at: https://github.com/freebsd/freebsd-src/blob/098dbd7ff7f3da9dda03802cdb2d8755f816eada/sys/sys/stat.h#L105

sleirsgoevy commented 2 years ago

Before merging this, check this. It fixes the same issue by changing the structure definition.

Cryptogenic commented 2 years ago

Fixed in header changes already committed / backported.