cross: Move Solaris API64 defines to common

off64_t is needed for both Linux (musl) and MacOS, so move them to the
common area. Somehow glibc provides the definition, but defining it
doesn't hurt and hels in the musl case.

Reviewed by: allanjude, jrtc27
Pull Request: https://github.com/freebsd/freebsd-src/pull/1066
This commit is contained in:
Val Packett 2024-05-23 15:49:53 -06:00 committed by Warner Losh
parent f81c0904f7
commit 59aa64914a
2 changed files with 3 additions and 2 deletions

View File

@ -45,3 +45,6 @@
* Neither GLibc nor macOS define __va_list but many FreeBSD headers require it.
*/
typedef __builtin_va_list __va_list;
/* Needed for opensolaris compat. */
typedef __int64_t off64_t;

View File

@ -41,5 +41,3 @@
* __darwin_ct_rune_t exists.
*/
typedef __darwin_ct_rune_t __ct_rune_t;
/* Needed for opensolaris compat. */
typedef __int64_t off64_t;