Fix errno conflict

Newlib defines errno as

	#define errno (*__errno())

In case this is expanded in a function parameter, e.g.

	void f(int errno) { ... }

then we have a function pointer parameter instead of the integer scalar.
This commit is contained in:
Sebastian Huber
2013-10-24 14:46:25 +02:00
parent 2208c4036d
commit 11b7f58408
8 changed files with 27 additions and 29 deletions

View File

@@ -33,6 +33,10 @@
* @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95
*/
#ifdef __rtems__
#include <errno.h>
#undef errno
#endif /* __rtems__ */
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");