The error happens because the compiler doesn’t recognize the standard close() function. You just need to include the proper system header so close() is known, and make sure your function always returns a value. That should fix the compile on ARM.