You've already forked godot
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:
4
thirdparty/linuxbsd_headers/alsa/asoundlib.h
vendored
4
thirdparty/linuxbsd_headers/alsa/asoundlib.h
vendored
@@ -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
|
||||
|
||||
16
thirdparty/linuxbsd_headers/alsa/patches/freebsd_endian.diff
vendored
Normal file
16
thirdparty/linuxbsd_headers/alsa/patches/freebsd_endian.diff
vendored
Normal 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
|
||||
Reference in New Issue
Block a user