--- gcc/config/arm/xm-arm.h 2018/04/24 18:16:10 1.1.1.2 +++ gcc/config/arm/xm-arm.h 2018/04/24 18:22:23 1.1.1.3 @@ -62,6 +62,12 @@ the Free Software Foundation, 675 Mass A #define SUCCESS_EXIT_CODE 0 #define FATAL_EXIT_CODE 33 +/* If we have defined POSIX, but are compiling in the BSD environment, then + we need to define getcwd in terms of getwd. */ +#if defined (POSIX) && defined (_BSD_C) +#define HAVE_GETWD 1 +#endif + /* EOF xm-arm.h */