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

via Openmp-commits openmp-commits at lists.llvm.org
Thu Feb 22 13:14:31 PST 2024


Author: Daniel Martinez
Date: 2024-02-22T13:14:27-08:00
New Revision: 45fe67dd61a6ac7df84d3a586e41c36a4767757f

URL: https://github.com/llvm/llvm-project/commit/45fe67dd61a6ac7df84d3a586e41c36a4767757f
DIFF: https://github.com/llvm/llvm-project/commit/45fe67dd61a6ac7df84d3a586e41c36a4767757f.diff

LOG: Fix build on musl by including stdint.h (#81434)

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

Co-authored-by: Daniel Martinez <danielmartinez at cock.li>

Added: 
    

Modified: 
    openmp/libomptarget/include/Shared/SourceInfo.h

Removed: 
    


################################################################################
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