mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-22 01:21:53 -06:00
qemu-thread: Replace __linux__ with CONFIG_LINUX
scripts/checkpatch.pl warns for __linux__ saying "architecture specific defines should be avoided". Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lore.kernel.org/r/20250526-event-v4-4-5b784cc8e1de@daynix.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
1bc2c49539
commit
32da70a887
2 changed files with 4 additions and 4 deletions
|
@ -33,7 +33,7 @@ struct QemuSemaphore {
|
|||
};
|
||||
|
||||
struct QemuEvent {
|
||||
#ifndef __linux__
|
||||
#ifndef CONFIG_LINUX
|
||||
pthread_mutex_t lock;
|
||||
pthread_cond_t cond;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue