diff --git a/libc/src/stdlib/rand_util.h b/libc/src/stdlib/rand_util.h index cadd6b5cdcbb8..036d6331b47f4 100644 --- a/libc/src/stdlib/rand_util.h +++ b/libc/src/stdlib/rand_util.h @@ -9,7 +9,9 @@ #ifndef LLVM_LIBC_SRC_STDLIB_RAND_UTIL_H #define LLVM_LIBC_SRC_STDLIB_RAND_UTIL_H +#ifdef LIBC_TARGET_ARCH_IS_GPU #include "src/__support/GPU/utils.h" +#endif #include "src/__support/macros/attributes.h" namespace LIBC_NAMESPACE {