haiku: use uint32 instead of uint32_t (#4754)

Haiku has parallel types to stdint.h, and their APIs use these
types.  In the Haiku-specific haiku.h file, it is passing an
address of a uint32_t to get_cpu_topology_info(), that expects
the other uint32:

  648fa5897c/src/system/libroot/os/system_info.cpp (L187)

You get an "incompatible-pointer-types" warning in gcc if the
warnings are turned up.  But if you pass the pointer to Haiku's
notion of uint32, then the warning goes away.
This commit is contained in:
AE1020 2025-04-16 08:47:07 -04:00 committed by GitHub
parent bcc799a16e
commit bf6c8870dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,7 +120,7 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
int i;
status_t status;
system_info system;
uint32_t topology_count;
uint32 topology_count; /* Haiku expects address of uint32, not uint32_t */
uint64_t cpuspeed;
uv_cpu_info_t* cpu_info;