commit | 88eb9291fc0b866f0b5e81e63ef8c83022c3d7b2 | [log] [tgz] |
---|---|---|
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | Tue Feb 08 22:10:11 2022 +0000 |
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | Tue Feb 08 22:10:11 2022 +0000 |
tree | 31ae328bb7c9c750b4ce068a5eda824b15338fa7 | |
parent | edd14f40ab3ccc585a6259dd990a07294596ca45 [diff] |
arch/unix/unix.c: fix build on x86 architecture with modern gcc compilers Modern gcc compilers will fail to build x86 OpenBIOS failing with the error message "libc/misc.c:20: multiple definition of `errno_int'" during link. Since the accompanying comment mentions that the reason for adding the definition is to allow compilation to succeed on OS X, surround it with suitable #if defined(__APPLE__) ... #endif guards. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>