On new Linux, for example, Ubuntu X86-64, while there is no gcc installed, there are no socket.h headers, whereas gcc, you can find under /usr/include , for me, the output is:
$ find /usr/include/ -name socket.h /usr/include/asm-generic/socket.h /usr/include/x86_64-linux-gnu/asm/socket.h /usr/include/x86_64-linux-gnu/bits/socket.h /usr/include/x86_64-linux-gnu/sys/socket.h /usr/include/linux/socket.h
coanor
source share