sys/unistd.h, bsdsocket.h and __USE_INLINE__
Posted: Tue Jun 05, 2012 10: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:
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.
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));
Please can this be fixed in the SDK.