aboutsummaryrefslogtreecommitdiff
path: root/tools/build/cross-build/include/mac
Commit message (Collapse)AuthorAgeFilesLines
* cross-build: Add a <endian.h> wrapper for macOSJohn Baldwin2025-07-291-0/+7
| | | | | | This is required to build libkrb5support. Fixes: 7e35117eb07f ("Makefile: Hook MIT KRB5 into the build")
* cross-build: Workaround system-provided strchrnul on macOS 15.4+John Baldwin2025-04-281-2/+5
| | | | | | | | | | | | | macOS added a native strchrnul in 15.4. There is not an easy way to detect it at compile time, so use a macro to rename our local inline version to avoid conflicts while also forcing its use during bootstrap. The local version can be removed once macOS versions older than 15.4 are no longer supported as build hosts. Co-authored by: jrtc27 Reported by: kib Reviewed by: jrtc27 Differential Revision: https://reviews.freebsd.org/D49893
* cross: Move Solaris API64 defines to commonVal Packett2024-05-241-2/+0
| | | | | | | | | 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
* tools/build: Provide sys/linker_set.h when cross-buildingJessica Clarke2023-12-131-0/+140
| | | | | | | | | | This is needed for kldxref, which will shortly become a bootstrap tool. Linux can use the same one as FreeBSD (provided the cross-building sys/cdefs.h is augmented appropriately), whilst macOS needs its own Mach-O-specific implementation. Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D43049
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-1610-20/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* cross-build: Add secure_getenv() for MacOS cross buildsMark Johnston2023-03-301-0/+1
| | | | | | Reviewed by: arichardson Fixes: 68ca8363c7a1 ("libc: Use secure_getenv(3) where appropriate") Differential Revision: https://reviews.freebsd.org/D39295
* cross-build: fix some redeclaration warnings during bootstrapAlex Richardson2021-10-111-2/+0
| | | | MFC after: 3 days
* Fix warnings during bootstrap phase on macOSAlex Richardson2021-01-071-1/+1
|
* Fix dtrace tools bootstrap on non-FreeBSD after OpenZFS importAlex Richardson2020-09-191-0/+2
| | | | | | | | | | | | This required surprisingly few build system changes and only two changes to the openZFS compat headers which have been upstreamed as https://github.com/openzfs/zfs/pull/10863 Reviewed By: #zfs, freqlabs Differential Revision: https://reviews.freebsd.org/D26193 Notes: svn path=/head/; revision=365901
* Add Linux/macOS compatibility system headers to tools/build/cross-buildAlex Richardson2020-08-2510-0/+646
These headers are required in order to build the bootstrap tools on macOS and Linux. A follow-up commit will add implementations of functions that don't exist on those operating systems to -legacy when bootstrapping. Reviewed By: brooks Differential Revision: https://reviews.freebsd.org/D14316 Notes: svn path=/head/; revision=364757