ext: hal: altera: Add ifdef protection for __LINUX_ERRNO_EXTENSIONS__
__LINUX_ERRNO_EXTENSIONS__ gets defined in HAL/inc/sys/alt_errno.h, however we also need to define this if we are building with newlib. So add a simple ifdef guard to only define __LINUX_ERRNO_EXTENSIONS__ if its not defined already. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
ecc891b296
commit
57fbc66882
1 changed files with 2 additions and 0 deletions
|
@ -65,7 +65,9 @@
|
|||
extern int* (*alt_errno) (void);
|
||||
|
||||
/* Must define this so that values such as EBADFD are defined in errno.h. */
|
||||
#ifndef __LINUX_ERRNO_EXTENSIONS__
|
||||
#define __LINUX_ERRNO_EXTENSIONS__
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue