mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +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:
parent
f68c4b4746
commit
4a0b7955fd
@ -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>
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user