summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMalcolm Smith <smith@chaquo.com>2024-03-01 17:50:48 (GMT)
committerGitHub <noreply@github.com>2024-03-01 17:50:48 (GMT)
commite6e35327d87e5456ba2178915e4f523a42051d4b (patch)
treed3740b08a5838f38660be621b04f684966599ce8 /Modules
parentcc6f807760300b575195bb8e678b82c10e24231c (diff)
downloadcpython-e6e35327d87e5456ba2178915e4f523a42051d4b.zip
cpython-e6e35327d87e5456ba2178915e4f523a42051d4b.tar.gz
cpython-e6e35327d87e5456ba2178915e4f523a42051d4b.tar.bz2
gh-115773: Add missing preprocessor guard in _testexternalinspection (#116212)
Add missing preprocessor guard in _testexternalinspection
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testexternalinspection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testexternalinspection.c b/Modules/_testexternalinspection.c
index 19ee3b8..4929a7b 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;