Skip to content

Commit 0e50c6f

Browse files
committed
CORE: Fix MacOS change breaking BSD sockets #441
It seems Apple has introduced some significant changes in Mac headers which breaks many UNIX/BSD socket code. Fortunately, it seems a simple: helps to go back from insanity to normality, thanks, Apple ;) Thanks to @geir-straume for reporting the issue: #441 The problem was hidden, since github actions still uses an older MacOS which does not have this problem yet, so Xemu compiles fine with that OS version.
1 parent 54bf011 commit 0e50c6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xemu/arch-sys.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
8585
# ifdef XEMU_CPU_ARM
8686
# define XEMU_ARCH_MAC_ARM
8787
# endif
88+
// Recently, Apple made stupid changes, breaking exisiting codes everywhere. It seems,
89+
// with this #define, it's possible to revert back to normality from insanity :)
90+
# define _DARWIN_C_SOURCE
8891
#elif defined(__unix__) || defined(__unix) || defined(__linux__) || defined(__linux)
8992
# define XEMU_ARCH_UNIX
9093
# if defined(__linux__) || defined(__linux)

0 commit comments

Comments
 (0)