sys/unistd.h, bsdsocket.h and __USE_INLINE__

Have a question about our Software Developer Kit? Ask them here.
Post Reply
chris
Posts: 552
Joined: Sat Jun 18, 2011 11:05 am
Contact:

sys/unistd.h, bsdsocket.h and __USE_INLINE__

Post by chris »

There is a conflict with the bsdsocket includes and newlib's sys/unistd.h header, when both are included and __USE_INLINE__ is defined.

Lines 96 and 98 of sys/unistd.h generate warnings/errors:

Code: Select all

int	_EXFUN(getdtablesize, (void));
int	_EXFUN(gethostname, (char *__name, size_t __len));
I've put #ifndef PROTO_BSDSOCKET_H around them here to resolve the problem, although there's probably a better define to use than that. It serves my purposes however.

Please can this be fixed in the SDK.
Post Reply