Blob Blame History Raw
diff -up gcc-4.7.0/libgcc/config/m68k/linux-atomic.c.cross-libgcc-m68k gcc-4.7.0/libgcc/config/m68k/linux-atomic.c
--- gcc-4.7.0/libgcc/config/m68k/linux-atomic.c.cross-libgcc-m68k	2012-06-01 18:08:54.998851298 +0200
+++ gcc-4.7.0/libgcc/config/m68k/linux-atomic.c	2012-06-01 18:09:16.871488040 +0200
@@ -33,7 +33,9 @@ see the files COPYING3 and COPYING.RUNTI
    using the kernel helper defined below.  There is no support for
    64-bit operations yet.  */
 
+#ifndef inhibit_libc
 #include <asm/unistd.h>
+#endif
 #include <stdbool.h>
 
 #ifndef __NR_atomic_cmpxchg_32