[PATCH] D133556: [sanitizer_common] Restore sanitizer_procmaps_solaris.cpp compilation on Solaris 11.3

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 23 06:50:42 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG1cd4d63fb9ab: [sanitizer_common] Restore sanitizer_procmaps_solaris.cpp compilation on… (authored by ro).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133556/new/

https://reviews.llvm.org/D133556

Files:
  compiler-rt/lib/sanitizer_common/sanitizer_procmaps_solaris.cpp


Index: compiler-rt/lib/sanitizer_common/sanitizer_procmaps_solaris.cpp
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_procmaps_solaris.cpp
+++ compiler-rt/lib/sanitizer_common/sanitizer_procmaps_solaris.cpp
@@ -9,6 +9,8 @@
 // Information about the process mappings (Solaris-specific parts).
 //===----------------------------------------------------------------------===//
 
+// Before Solaris 11.4, <procfs.h> doesn't work in a largefile environment.
+#undef _FILE_OFFSET_BITS
 #include "sanitizer_platform.h"
 #if SANITIZER_SOLARIS
 #  include <fcntl.h>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133556.462469.patch
Type: text/x-patch
Size: 625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220923/91bbe2fb/attachment.bin>


More information about the llvm-commits mailing list