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 --- arch/unix/unix.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/unix/unix.c b/arch/unix/unix.c index 1f628eb..cb9757e 100644 --- a/arch/unix/unix.c +++ b/arch/unix/unix.c @@ -68,7 +68,9 @@ static int verbose = 0; unsigned long isa_io_base; #endif
+#if defined(__APPLE__) int errno_int; /* implement for fs drivers, needed to build on Mac OS X */ +#endif
ucell ofmem_claim(ucell addr, ucell size, ucell align) {