浏览代码

- arm eabi needs __UCLIBC_TRUNCATE64_HAS_4_ARGS__
(75_all_uClibc-arm-ftruncate64.patch from gentoo)

Bernhard Reutner-Fischer 16 年之前
父节点
当前提交
093b396bc5
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      libc/sysdeps/linux/arm/bits/uClibc_arch_features.h

+ 4 - 0
libc/sysdeps/linux/arm/bits/uClibc_arch_features.h

@@ -12,7 +12,11 @@
 #undef __UCLIBC_MMAP_HAS_6_ARGS__
 
 /* does your target use syscall4() for truncate64 ? (32bit arches only) */
+#ifdef __ARM_EABI__
+#define __UCLIBC_TRUNCATE64_HAS_4_ARGS__
+#else
 #undef __UCLIBC_TRUNCATE64_HAS_4_ARGS__
+#endif
 
 /* does your target have a broken create_module() ? */
 #define __UCLIBC_BROKEN_CREATE_MODULE__