From: Pedro Alves Date: Tue, 5 Aug 2025 22:47:24 +0000 (+0100) Subject: gdb.rocm: Don't include unistd.h when not necessary X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37491e34f0652e48879d4551e61239ba905cba0b;p=thirdparty%2Fbinutils-gdb.git gdb.rocm: Don't include unistd.h when not necessary gdb.rocm/code-object-load-while-breakpoint-hit.cpp is including unistd.h unnecessarily AFAICS. Don't include it, so this test can compile on Windows (x86_64-pc-windows-msvc) as well. Approved-by: Lancelot Six (amdgpu) Change-Id: I9f469fd4b061ab9895c8bbbd408939e4df2a4e92 --- diff --git a/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.cpp b/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.cpp index d2f2ddcbf6c..d7101b419c0 100644 --- a/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.cpp +++ b/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.cpp @@ -36,7 +36,6 @@ kernel () #else #include -#include #include "rocm-test-utils.h"