I compile brickOS on Mac, but I got error as below.
I tried to locate netinet/in.h, here are the result, which one should be used?
Code:
/usr/local/h8300-hms/bin/h8300-hms-gcc -o lnp.o -c /Users/mikezang/lego/brickos/brickos-0.9.0/kernel/lnp.c -O2 -Wall -O2 -Wall -I. -I/Users/mikezang/lego/brickos/brickos-0.9.0/include/lnp
/var/folders/03/xkrybkfd2_d620bj8swbth7w0000gn/T//ccYPSjm3.s: Assembler messages:
/var/folders/03/xkrybkfd2_d620bj8swbth7w0000gn/T//ccYPSjm3.s:38: Warning: operand #0xfffffffffffffffa out of range.
/var/folders/03/xkrybkfd2_d620bj8swbth7w0000gn/T//ccYPSjm3.s:83: Warning: operand #0xfffffffffffffff8 out of range.
/usr/local/h8300-hms/bin/h8300-hms-gcc -o lx.o -c lx.c -O2 -Wall -O2 -Wall -I. -I/Users/mikezang/lego/brickos/brickos-0.9.0/include/lnp
lx.c:32:24: netinet/in.h: No such file or directory
I tried to locate netinet/in.h, here are the result, which one should be used?
Code:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/netinet/in.h
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/netinet/in.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/usr/include/netinet/in.h
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/include/netinet/in.h
/Users/mikezang/brickos/newlib-1.14.0/newlib/libc/sys/linux/include/netinet/in.h