[libcxx-commits] [PATCH] D85095: Fix libcxx build on riscv32
Khem Raj via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Aug 2 10:39:49 PDT 2020
raj.khem updated this revision to Diff 282463.
raj.khem added a comment.
Fix formatting errors
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85095/new/
https://reviews.llvm.org/D85095
Files:
libcxx/src/atomic.cpp
Index: libcxx/src/atomic.cpp
===================================================================
--- libcxx/src/atomic.cpp
+++ libcxx/src/atomic.cpp
@@ -16,6 +16,9 @@
#include <iostream>
#ifdef __linux__
+#if !defined(__NR_futex) && defined(__riscv) && __riscv_xlen == 32
+#define __NR_futex __NR_futex_time64
+#endif
#include <unistd.h>
#include <linux/futex.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85095.282463.patch
Type: text/x-patch
Size: 371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200802/dc91dfcd/attachment-0001.bin>
More information about the libcxx-commits
mailing list