<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tools/build/cross-build/include/mac, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>cross-build: Provide mempcpy when building on macOS</title>
<updated>2026-03-23T16:56:09+00:00</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@FreeBSD.org</email>
</author>
<published>2026-03-23T16:56:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=47402c9422ec6c9ba76d96414f5a08bd35a9e1fd'/>
<id>47402c9422ec6c9ba76d96414f5a08bd35a9e1fd</id>
<content type='text'>
We could patch the tzcode config to not use it, but it's simple to
provide an implementation of it and avoid spreading cross-build
bootstrapping special cases.

Fixes:		ff2c98b30b57 ("tzcode: Update to 2026a")
MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We could patch the tzcode config to not use it, but it's simple to
provide an implementation of it and avoid spreading cross-build
bootstrapping special cases.

Fixes:		ff2c98b30b57 ("tzcode: Update to 2026a")
MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>cross-build: Add a &lt;endian.h&gt; wrapper for macOS</title>
<updated>2025-07-29T17:52:11+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-07-29T17:52:11+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=706d8ffa3953c5b30a3527cfc63730c99a835f4b'/>
<id>706d8ffa3953c5b30a3527cfc63730c99a835f4b</id>
<content type='text'>
This is required to build libkrb5support.

Fixes:		7e35117eb07f ("Makefile: Hook MIT KRB5 into the build")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is required to build libkrb5support.

Fixes:		7e35117eb07f ("Makefile: Hook MIT KRB5 into the build")
</pre>
</div>
</content>
</entry>
<entry>
<title>cross-build: Workaround system-provided strchrnul on macOS 15.4+</title>
<updated>2025-04-28T17:10:41+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-04-28T17:10:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=4e2616b74cb7eed921aa10fb776cdc2d5fd4e42f'/>
<id>4e2616b74cb7eed921aa10fb776cdc2d5fd4e42f</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>cross: Move Solaris API64 defines to common</title>
<updated>2024-05-24T02:03:18+00:00</updated>
<author>
<name>Val Packett</name>
<email>val@packett.cool</email>
</author>
<published>2024-05-23T21:49:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=59aa64914aeb1b2cccc0d4fc39ead2ee159a1e5b'/>
<id>59aa64914aeb1b2cccc0d4fc39ead2ee159a1e5b</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/build: Provide sys/linker_set.h when cross-building</title>
<updated>2023-12-13T21:43:09+00:00</updated>
<author>
<name>Jessica Clarke</name>
<email>jrtc27@FreeBSD.org</email>
</author>
<published>2023-12-13T21:43:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=881ec81372e0748f2869fe6c18e909afa8304e7a'/>
<id>881ec81372e0748f2869fe6c18e909afa8304e7a</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-16T17:54:16+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=b3e7694832e81d7a904a10f525f8797b753bf0d3'/>
<id>b3e7694832e81d7a904a10f525f8797b753bf0d3</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
</pre>
</div>
</content>
</entry>
<entry>
<title>cross-build: Add secure_getenv() for MacOS cross builds</title>
<updated>2023-03-30T04:54:13+00:00</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2023-03-28T12:55:17+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=0ec03c0b10b125f5996d59fee904248978981898'/>
<id>0ec03c0b10b125f5996d59fee904248978981898</id>
<content type='text'>
Reviewed by:	arichardson
Fixes:		68ca8363c7a1 ("libc: Use secure_getenv(3) where appropriate")
Differential Revision:	https://reviews.freebsd.org/D39295
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reviewed by:	arichardson
Fixes:		68ca8363c7a1 ("libc: Use secure_getenv(3) where appropriate")
Differential Revision:	https://reviews.freebsd.org/D39295
</pre>
</div>
</content>
</entry>
<entry>
<title>cross-build: fix some redeclaration warnings during bootstrap</title>
<updated>2021-10-11T10:57:54+00:00</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2021-09-13T09:11:47+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a89410ef91798859f3fd7a5f675184b4d711ade4'/>
<id>a89410ef91798859f3fd7a5f675184b4d711ade4</id>
<content type='text'>
MFC after:	3 days
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
MFC after:	3 days
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix warnings during bootstrap phase on macOS</title>
<updated>2021-01-07T09:31:03+00:00</updated>
<author>
<name>Alex Richardson</name>
<email>Alexander.Richardson@cl.cam.ac.uk</email>
</author>
<published>2020-12-14T16:14:04+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7467c537a50e558588e369a1409f50684ddefb25'/>
<id>7467c537a50e558588e369a1409f50684ddefb25</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix dtrace tools bootstrap on non-FreeBSD after OpenZFS import</title>
<updated>2020-09-19T12:08:16+00:00</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2020-09-19T12:08:16+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=79e02149fcb480c95cfda65e2145ed021dfde5a6'/>
<id>79e02149fcb480c95cfda65e2145ed021dfde5a6</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
</feed>
