You ask if the contents of Mac OS X <sys/socket.h>
Linux version? No, the Mac OS X header is based on BSD.
man socket
SOCKET(2) BSD System Calls Manual SOCKET(2) NAME socket -- create an endpoint for communication SYNOPSIS #include <sys/socket.h> int socket(int domain, int type, int protocol); DESCRIPTION Socket() creates an endpoint for communication and returns a descriptor. The domain parameter specifies a communications domain within which com-
If you ask if the source code is compatible between the two platforms, then yes, if the source code is tied to portable interfaces.
If you think of some other reason that socket material might need to be rewritten, I think it depends on whether your current code meets your building requirements for OS X.
source share