Skip to content

Commit

Permalink
ext: hal: altera: Add ifdef protection for __LINUX_ERRNO_EXTENSIONS__
Browse files Browse the repository at this point in the history
__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 <[email protected]>
  • Loading branch information
galak committed Jul 16, 2018
1 parent ecc891b commit 57fbc66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/hal/altera/altera_hal/HAL/inc/sys/alt_errno.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down

0 comments on commit 57fbc66

Please sign in to comment.