crosstool-ng/packages/uClibc-ng/1.0.48/0005-csky-allow-time64.patch

40 lines
1.4 KiB
Diff
Raw Normal View History

From 79485f17d59ad267dc1add87b23248dff9908132 Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Fri, 10 May 2024 11:51:13 +0200
Subject: [PATCH 5/7] csky: allow time64
---
extra/Configs/Config.in | 1 +
libc/sysdeps/linux/csky/bits/uClibc_arch_features.h | 3 ---
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
index b814449b4..3a0136c99 100644
--- a/extra/Configs/Config.in
+++ b/extra/Configs/Config.in
@@ -1028,6 +1028,7 @@ config UCLIBC_USE_TIME64
bool "Use *time64 syscalls instead of 32bit ones (if possible)"
depends on TARGET_arc || \
TARGET_arm || \
+ TARGET_csky || \
TARGET_i386 || \
TARGET_m68k || \
TARGET_microblaze || \
diff --git a/libc/sysdeps/linux/csky/bits/uClibc_arch_features.h b/libc/sysdeps/linux/csky/bits/uClibc_arch_features.h
index 3f5dab80c..1b866cb90 100644
--- a/libc/sysdeps/linux/csky/bits/uClibc_arch_features.h
+++ b/libc/sysdeps/linux/csky/bits/uClibc_arch_features.h
@@ -17,9 +17,6 @@
/* can your target use syscall6() for mmap ? */
#undef __UCLIBC_MMAP_HAS_6_ARGS__
-/* does your target use statx */
-#define __UCLIBC_HAVE_STATX__
-
#ifdef __CSKYABIV2__
#undef __UCLIBC_SYSCALL_ALIGN_64BIT__
#else
--
2.43.2