https://github.com/python/cpython/commit/e6e35327d87e5456ba2178915e4f523a42051d4b
commit: e6e35327d87e5456ba2178915e4f523a42051d4b
branch: main
author: Malcolm Smith <[email protected]>
committer: pablogsal <[email protected]>
date: 2024-03-01T17:50:48Z
summary:
gh-115773: Add missing preprocessor guard in _testexternalinspection (#116212)
Add missing preprocessor guard in _testexternalinspection
files:
M Modules/_testexternalinspection.c
diff --git a/Modules/_testexternalinspection.c
b/Modules/_testexternalinspection.c
index 19ee3b8dd1428d..4929a7bf5a984e 100644
--- a/Modules/_testexternalinspection.c
+++ b/Modules/_testexternalinspection.c
@@ -352,7 +352,7 @@ ssize_t
read_memory(pid_t pid, void* remote_address, size_t len, void* dst)
{
ssize_t total_bytes_read = 0;
-#ifdef __linux__
+#if defined(__linux__) && HAVE_PROCESS_VM_READV
struct iovec local[1];
struct iovec remote[1];
ssize_t result = 0;
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]