1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Merge pull request #100047 from MBCX/fix-freebsd-compilation

Make Godot compile on `FreeBSD`
This commit is contained in:
Thaddeus Crews
2024-12-05 14:12:11 -06:00
5 changed files with 34 additions and 2 deletions

View File

@@ -38,7 +38,11 @@
#include <poll.h>
#include <errno.h>
#include <stdarg.h>
#ifdef __FreeBSD__
#include <sys/endian.h>
#else
#include <endian.h>
#endif // __FreeBSD__
#ifndef __GNUC__
#define __inline__ inline

View File

@@ -0,0 +1,16 @@
diff --git a/thirdparty/linuxbsd_headers/alsa/asoundlib.h b/thirdparty/linuxbsd_headers/alsa/asoundlib.h
index a546194382..598175403c 100644
--- a/thirdparty/linuxbsd_headers/alsa/asoundlib.h
+++ b/thirdparty/linuxbsd_headers/alsa/asoundlib.h
@@ -38,7 +38,11 @@
#include <poll.h>
#include <errno.h>
#include <stdarg.h>
+#ifdef __FreeBSD__
+#include <sys/endian.h>
+#else
#include <endian.h>
+#endif // __FreeBSD__
#ifndef __GNUC__
#define __inline__ inline