[libcxx-commits] [libcxx] [libcxx] Make terminal check always false for `print` on GPU (PR #99259)

Joseph Huber via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 31 07:17:54 PDT 2024


================
@@ -29,7 +29,8 @@
 #  include <sys/time.h> // for gettimeofday and timeval
 #endif
 
-#if defined(__APPLE__) || defined(__gnu_hurd__) || (defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0)
+#if defined(__APPLE__) || defined(__gnu_hurd__) || defined(_LIBCPP_TARGETING_GPU) ||                                   \
----------------
jhuber6 wrote:

We don't have `unistd.h` at all.

https://github.com/llvm/llvm-project/pull/99259


More information about the libcxx-commits mailing list