Browse Source

Stupid libgcc.a from gcc 2.95.x uses __write in pure.o
which is a blatent GNU libc-ism... Cope.
-Erik

Eric Andersen 23 years ago
parent
commit
14efb6d73e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      libc/sysdeps/linux/common/syscalls.c

+ 3 - 0
libc/sysdeps/linux/common/syscalls.c

@@ -65,6 +65,9 @@ weak_alias(__libc_read, read)
 #define __NR___libc_write __NR_write
 _syscall3(ssize_t, __libc_write, int, fd, const __ptr_t, buf, size_t, count);
 weak_alias(__libc_write, write)
+/* Stupid libgcc.a from gcc 2.95.x uses __write in pure.o
+ * which is a blatent GNU libc-ism... */
+weak_alias (__libc_write, __write)
 #endif
 
 //#define __NR_open             5