diff -Nur gcc-4.9.3.orig/gcc/config/frv/linux.h gcc-4.9.3/gcc/config/frv/linux.h
--- gcc-4.9.3.orig/gcc/config/frv/linux.h	2014-01-02 23:23:26.000000000 +0100
+++ gcc-4.9.3/gcc/config/frv/linux.h	2015-11-22 11:36:17.574727932 +0100
@@ -69,6 +69,6 @@
 #undef INVOKE__main
 
 #undef Twrite
-#define Twrite __write
+#define Twrite write
 
 #endif /* __FRV_LINUX_H__ */
