diff options
| author | Philippe Mathieu-Daudé | 2022-01-06 00:46:01 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé | 2022-03-15 13:36:33 +0100 |
| commit | aa44d3f6b8d2f08f09034f287efec8890633cc38 (patch) | |
| tree | bc24a79b621921b55564ba291cb9c9dbcf52d75b /include/exec/log.h | |
| parent | hvf: Remove deprecated hv_vcpu_flush() calls (diff) | |
| download | qemu-aa44d3f6b8d2f08f09034f287efec8890633cc38.tar.gz qemu-aa44d3f6b8d2f08f09034f287efec8890633cc38.tar.xz qemu-aa44d3f6b8d2f08f09034f287efec8890633cc38.zip | |
block/file-posix: Remove a deprecation warning on macOS 12
When building on macOS 12 we get:
block/file-posix.c:3335:18: warning: 'IOMasterPort' is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
kernResult = IOMasterPort( MACH_PORT_NULL, &masterPort );
^~~~~~~~~~~~
IOMainPort
Replace by IOMainPort, redefining it to IOMasterPort if not available.
Suggested-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed by: Cameron Esfahani <dirty@apple.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Tested-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Diffstat (limited to 'include/exec/log.h')
0 files changed, 0 insertions, 0 deletions
