oslib-posix: fix compilation on OpenBSD
PATCH 1/1 oslib-posix: fix compilation on OpenBSD
si_band is not found in OpenBSD. It is marked as obsolescent in
POSIX, so we can delete it without any remorse.
Reported-by Peter Maydell <[email protected]>
Signed-off-by Paolo Bonzini <[email protected]>
--- util/oslib-posix.c | 2 -- 1 file changed, 2 deletions(-)
util/oslib-posix.c +0 -2
@@ -709,8 +709,6 @@ void sigaction_invoke(struct sigaction *action, si.si_pid = info->ssi_pid; si.si_status = info->ssi_status; si.si_uid = info->ssi_uid; - }else if (info->ssi_signo ==SIGIO ) { - si.si_band = info->ssi_band; } action->sa_sigaction (info->ssi_signo, &si,NULL ); }
Signature · 1 line
2.9.3
Quoted 5 lines · Paolo Bonzini
si_bandis not found in OpenBSD. It is marked as obsolescent in
POSIX, so we can delete it without any remorse.Reported-by Peter Maydell <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 18 lines
--- util/oslib-posix.c | 2 -- 1 file changed, 2 deletions(-)util/oslib-posix.c +0
-2@@ -709,8 +709,6 @@ void sigaction_invoke(struct sigaction *action, si.si_pid = info->ssi_pid; si.si_status = info->ssi_status; si.si_uid = info->ssi_uid; - }else if (info->ssi_signo ==SIGIO ) { - si.si_band = info->ssi_band; } action->sa_sigaction (info->ssi_signo, &si,NULL ); }
Quoted 23 lines · Paolo Bonzini
si_bandis not found in OpenBSD. It is marked as obsolescent in
POSIX, so we can delete it without any remorse.Reported-by Peter Maydell <[email protected]>Signed-off-by Paolo Bonzini <[email protected]>--- util/oslib-posix.c | 2 -- 1 file changed, 2 deletions(-)util/oslib-posix.c +0
-3@@ -709,8 +709,6 @@ void sigaction_invoke(struct sigaction *action, si.si_pid = info->ssi_pid; si.si_status = info->ssi_status; si.si_uid = info->ssi_uid; - }else if (info->ssi_signo ==SIGIO ) { - si.si_band = info->ssi_band; } action->sa_sigaction (info->ssi_signo, &si,NULL ); } --
Quoted 1 line
2.9.3
Applied to master as a buildfix, thanks.
-- PMM