[Lldb-commits] [lldb] [lldb][AIX] Some base #if _AIX changes of a minimal lldb build (PR #120979)

Dhruv Srivastava via lldb-commits lldb-commits at lists.llvm.org
Sun Jan 5 01:07:19 PST 2025


================
@@ -1226,7 +1226,7 @@ bool lldb_private::formatters::ObjCSELSummaryProvider(
 time_t lldb_private::formatters::GetOSXEpoch() {
   static time_t epoch = 0;
   if (!epoch) {
-#ifndef _WIN32
+#if !defined(_WIN32) && !defined(_AIX)
----------------
DhruvSrivastavaX wrote:

The reason for #if is that `tm` structure defined on AIX does not have: `tm_gmtoff , tm_zone` 
and we dont have `timegm()` function as well. Since `GetOSXEpoch()` anyway seems specific to 
the MacOS epoch, there seems to be no need to do any other modifications to this function. 
I hope this is ok. 

https://github.com/llvm/llvm-project/pull/120979


More information about the lldb-commits mailing list