• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révisioncb6a910ab89befef46ebb6251a9800110bbd5c08 (tree)
l'heure2020-04-02 04:43:45
AuteurWaldemar Brodkorb <wbx@open...>
CommiterWaldemar Brodkorb

Message de Log

statx: make include conditional, fixes non-csky arch buildroot builds

Change Summary

Modification

--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -393,9 +393,11 @@ extern int futimens (int __fd, const struct timespec __times[2]) __THROW;
393393 #undef _MKNOD_VER
394394 #define _MKNOD_VER 0
395395
396+#ifdef __UCLIBC_HAVE_STATX__
396397 #ifdef __USE_GNU
397398 # include <bits/statx.h>
398399 #endif
400+#endif
399401
400402
401403 __END_DECLS
--- a/libc/sysdeps/linux/common/statx_cp.c
+++ b/libc/sysdeps/linux/common/statx_cp.c
@@ -15,10 +15,13 @@
1515 License along with the GNU C Library. If not, see
1616 <http://www.gnu.org/licenses/>. */
1717
18+#include <bits/uClibc_arch_features.h>
1819 #include <stddef.h>
1920 #include <string.h>
2021 #include <sys/stat.h>
2122
23+#if defined __UCLIBC_HAVE_STATX__
24+
2225 #include <statx_cp.h>
2326
2427 #if !defined(__NR_fstat64) || !defined(__NR_fstatat64)
@@ -70,3 +73,4 @@ __cp_stat_statx (struct stat *to, struct statx *from)
7073 to->st_blksize = from->stx_blksize;
7174 }
7275 #endif
76+#endif