[Openmp-commits] [openmp] Fix build on musl by including stdint.h (PR #81434)

Daniel Martinez via Openmp-commits openmp-commits at lists.llvm.org
Sun Feb 11 13:38:13 PST 2024


https://github.com/Calandracas606 created https://github.com/llvm/llvm-project/pull/81434

openmp fails to build on musl since it lacks the defines for int32_t

>From 52dab99f4ab61e21bf4dd3cb0d4463dc5cfa0867 Mon Sep 17 00:00:00 2001
From: Daniel Martinez <danielmartinez at cock.li>
Date: Sun, 11 Feb 2024 16:34:47 -0500
Subject: [PATCH] Fix build on musl by including stdint.h

---
 openmp/libomptarget/include/Shared/SourceInfo.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/openmp/libomptarget/include/Shared/SourceInfo.h b/openmp/libomptarget/include/Shared/SourceInfo.h
index 7ce5fd43efc07f..711f06a04d017f 100644
--- a/openmp/libomptarget/include/Shared/SourceInfo.h
+++ b/openmp/libomptarget/include/Shared/SourceInfo.h
@@ -13,6 +13,7 @@
 #ifndef OMPTARGET_SHARED_SOURCE_INFO_H
 #define OMPTARGET_SHARED_SOURCE_INFO_H
 
+#include <stdint.h>
 #include <string>
 
 #ifdef _WIN32



More information about the Openmp-commits mailing list