mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-18 05:13:03 +08:00
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:
@@ -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$");
|
||||
|
||||
|
Reference in New Issue
Block a user