[binutils-gdb] gdb.rocm: Don't include unistd.h when not necessary
Pedro Alves via Gdb-cvs <[email protected]> Mon, 6 Jul 2026 22:38:37 +0000 (GMT)
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=37491e34f0652e48879d4551e61239ba905cba0b commit 37491e34f0652e48879d4551e61239ba905cba0b Author: Pedro Alves <[email protected]> Date: Tue Aug 5 23:47:24 2025 +0100 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 <[email protected]> (amdgpu) Change-Id: I9f469fd4b061ab9895c8bbbd408939e4df2a4e92 Diff: --- gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.cpp | 1 - 1 file changed, 1 deletion(-) 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 <hip/hip_runtime.h> -#include <unistd.h> #include "rocm-test-utils.h"