mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
bsd-user: Move _WANT_FREEBSD macros to include/qemu/osdep.h
move _WANT_FREEBSD macros from bsd-user/freebsd/os-syscall.c to include/qemu/osdep.h in order to pull some struct defintions needed later in the build. Signed-off-by: Warner Losh <imp@bsdimp.com> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Acked-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
4436e2ff6c
commit
25e2cfbb8e
2 changed files with 13 additions and 11 deletions
|
@ -17,17 +17,6 @@
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* We need the FreeBSD "legacy" definitions. Rust needs the FreeBSD 11 system
|
|
||||||
* calls since it doesn't use libc at all, so we have to emulate that despite
|
|
||||||
* FreeBSD 11 being EOL'd.
|
|
||||||
*/
|
|
||||||
#define _WANT_FREEBSD11_STAT
|
|
||||||
#define _WANT_FREEBSD11_STATFS
|
|
||||||
#define _WANT_FREEBSD11_DIRENT
|
|
||||||
#define _WANT_KERNEL_ERRNO
|
|
||||||
#define _WANT_SEMUN
|
|
||||||
#include "qemu/osdep.h"
|
#include "qemu/osdep.h"
|
||||||
#include "qemu/cutils.h"
|
#include "qemu/cutils.h"
|
||||||
#include "qemu/path.h"
|
#include "qemu/path.h"
|
||||||
|
|
|
@ -88,6 +88,19 @@ QEMU_EXTERN_C int daemon(int, int);
|
||||||
#define __USE_MINGW_ANSI_STDIO 1
|
#define __USE_MINGW_ANSI_STDIO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We need the FreeBSD "legacy" definitions. Rust needs the FreeBSD 11 system
|
||||||
|
* calls since it doesn't use libc at all, so we have to emulate that despite
|
||||||
|
* FreeBSD 11 being EOL'd.
|
||||||
|
*/
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
#define _WANT_FREEBSD11_STAT
|
||||||
|
#define _WANT_FREEBSD11_STATFS
|
||||||
|
#define _WANT_FREEBSD11_DIRENT
|
||||||
|
#define _WANT_KERNEL_ERRNO
|
||||||
|
#define _WANT_SEMUN
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue