sys/unistd.h, bsdsocket.h and __USE_INLINE__

Have a question about our Software Developer Kit? Ask them here.

sys/unistd.h, bsdsocket.h and __USE_INLINE__

Postby chris » Tue Jun 05, 2012 11:29 pm

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.
Posts: 552
Joined: Sat Jun 18, 2011 12:05 pm

Return to SDK Support

Who is online

Users browsing this forum: No registered users and 1 guest