Where to find netinet/in.h on Mac 10.9?

Discussion in 'Mac Programming' started by mikezang, Aug 5, 2015.

  1. mikezang macrumors 6502a

    Joined:
    May 22, 2010
    Location:
    Tokyo, Japan
    #1
    I compile brickOS on Mac, but I got error as below.
    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
    
     
  2. Madd the Sane macrumors 6502

    Madd the Sane

    Joined:
    Nov 8, 2010
    Location:
    Utah
    #2
    This one is the one you want:
    There should also be one in
    Code:
    /usr/include/netinet/in.h
    see this URL for installation instructions.
     

Share This Page