[Openmp-commits] [openmp] [OpenMP] Implements __kmp_is_address_mapped for Solaris/Illumos. (PR #82930)
Rainer Orth via Openmp-commits
openmp-commits at lists.llvm.org
Tue Feb 27 05:07:41 PST 2024
================
@@ -66,6 +66,12 @@
#include <sys/types.h>
#include <sys/sysctl.h>
#elif KMP_OS_SOLARIS
+#if defined(__LP64__)
+#define _STRUCTURED_PROC 1
+#include <sys/procfs.h>
----------------
rorth wrote:
(GH is driving me nuts: lost part of my comments for the second time ;-()
Why do things this way? The documented way to access `procfs` is to just include `<procfs.h>` (which deals with `_STRUCTURED_PROC` internally).
https://github.com/llvm/llvm-project/pull/82930
More information about the Openmp-commits
mailing list