1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-23 07:31:31 +00:00

cross-build: Move fcntl.h workaround to Linux specific file

Move the cdefs.h inclusion to the Linux specific file. Either place will
work, but it makes more sense to do it in the Linux specific file since
it's a Linux specific workaround.

Fixes:			4300e05361
Suggested by:		arichards, jrtc27
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D45373
This commit is contained in:
Warner Losh 2024-07-24 20:46:35 -06:00
parent f68c4b4746
commit 4a0b7955fd
2 changed files with 7 additions and 7 deletions

View File

@ -44,3 +44,10 @@
#include "__unused_workaround_end.h"
#include <sys/file.h>
/*
* On FreeBSD fcntl.h indirectly brings in cdefs.h. On Linux with musl, it does
* not. It's needed in our fcntl.h for the cross build since we use
* __BEGIN_DECLS and __END_DECLS from it there.
*/
#include <sys/cdefs.h>

View File

@ -29,13 +29,6 @@
#include_next <fcntl.h>
/*
* On FreeBSD fcntl.h indirectly brings in cdefs.h. On Linux with musl, it does
* not. Unconditionally inlude it here since there's no harm in including it
* multiple times since we use __BEGIN_DECLS and __END_DECLS from it below.
*/
#include <sys/cdefs.h>
struct spacectl_range {
off_t r_offset;
off_t r_len;