#include <arpa.inet.h>
The calls to 'socket', 'recv' etc compile fine -
it's just the problem with 'close'.
My SDKROOT variable is set to
/Developer/SDKs/MacOSX10.4u.sdk/
I tried linking to an editable copy of the
10.4u SDK I'd placed on my Desktop, and by adding lines to cause errors, it
seems that when interpreting the line:
#include <unistd.h>
my Xcode project includes the file
'$(SDKROOT)/usr/include/usr/unistd.h'
instead of the one where 'close' is defined which I
need: $(SDKROOT)/usr/include/unistd.h' (which includes the one above
anyway).
I don't have any special header search paths
relating to the SDK - only paths to our own code.
A temporary measure is to substitute the
line:
'#include "usr/include/unistd.h" '
since this removes the error, but this is probably
the wrong way to go about it, since it just sweeps the problem under the
carpet...
Could anybody suggest what I need to do to solve
this?
Thanks,
Tom