[Lldb-commits] [lldb] Fix PATH_MAX for Windows (PR #104493)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 15 13:03:45 PDT 2024
https://github.com/royitaqi created https://github.com/llvm/llvm-project/pull/104493
Fix build break for Windows, caused by a [previous patch](https://github.com/llvm/llvm-project/pull/102223) using `PATH_MAX` which is undefined in Windows.
The fix is to `#include "lldb/Host/PosixApi.h"` in the source file.
>From cc75f7c1583263a2f4f8da4d7bc5e3a05be9c99d Mon Sep 17 00:00:00 2001
From: Roy Shi <royshi at meta.com>
Date: Thu, 15 Aug 2024 13:01:32 -0700
Subject: [PATCH] Fix PATH_MAX for windows
---
lldb/source/Utility/RealpathPrefixes.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/lldb/source/Utility/RealpathPrefixes.cpp b/lldb/source/Utility/RealpathPrefixes.cpp
index 14c81ee6a1f571..ee1c404c899676 100644
--- a/lldb/source/Utility/RealpathPrefixes.cpp
+++ b/lldb/source/Utility/RealpathPrefixes.cpp
@@ -8,6 +8,7 @@
#include "lldb/Utility/RealpathPrefixes.h"
+#include "lldb/Host/PosixApi.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/FileSpecList.h"
#include "lldb/Utility/LLDBLog.h"
More information about the lldb-commits
mailing list