]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb.rocm: Don't include unistd.h when not necessary
authorPedro Alves <pedro@palves.net>
Tue, 5 Aug 2025 22:47:24 +0000 (23:47 +0100)
committerPedro Alves <pedro@palves.net>
Mon, 6 Jul 2026 22:37:10 +0000 (23:37 +0100)
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 <lancelot.six@amd.com> (amdgpu)
Change-Id: I9f469fd4b061ab9895c8bbbd408939e4df2a4e92

gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.cpp

index d2f2ddcbf6c1bbbe92a5e3a553d7ecd388cce3de..d7101b419c06525e3b3be17c9533f0a45de42a40 100644 (file)
@@ -36,7 +36,6 @@ kernel ()
 #else
 
 #include <hip/hip_runtime.h>
-#include <unistd.h>
 
 #include "rocm-test-utils.h"