[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/48] osdep: fix HAVE_BROKEN_SIZE_MAX case
From: |
Paolo Bonzini |
Subject: |
[PULL 04/48] osdep: fix HAVE_BROKEN_SIZE_MAX case |
Date: |
Thu, 8 Jul 2021 17:17:04 +0200 |
While config-host.mak entries are expanded to "1" for compatibility with
create-config.sh, tests done directly in meson.build expand to the empty
string and cannot be placed to the right of the && operator. Adjust
osdep.h after commit e46bd55d9c ("configure: convert HAVE_BROKEN_SIZE_MAX
to meson", 2021-07-06) changed the way HAVE_BROKEN_SIZE_MAX is defined.
Reported-by: Frederic Bezies <fredbezies@gmail.com>
Fixes: e46bd55d9c ("configure: convert HAVE_BROKEN_SIZE_MAX to meson",
2021-07-06)
Resolves: #463
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
include/qemu/osdep.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index c91a78b5e6..60718fc342 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -256,7 +256,7 @@ extern "C" {
/* Mac OSX has a <stdint.h> bug that incorrectly defines SIZE_MAX with
* the wrong type. Our replacement isn't usable in preprocessor
* expressions, but it is sufficient for our needs. */
-#if defined(HAVE_BROKEN_SIZE_MAX) && HAVE_BROKEN_SIZE_MAX
+#ifdef HAVE_BROKEN_SIZE_MAX
#undef SIZE_MAX
#define SIZE_MAX ((size_t)-1)
#endif
--
2.31.1
- [PULL 00/48] Misc patches for QEMU 6.1 soft freeze, Paolo Bonzini, 2021/07/08
- [PULL 01/48] configure: fix libdaxctl options, Paolo Bonzini, 2021/07/08
- [PULL 03/48] meson: fix missing preprocessor symbols, Paolo Bonzini, 2021/07/08
- [PULL 06/48] modules: collect module meta-data, Paolo Bonzini, 2021/07/08
- [PULL 02/48] configure: fix libpmem configuration option, Paolo Bonzini, 2021/07/08
- [PULL 04/48] osdep: fix HAVE_BROKEN_SIZE_MAX case,
Paolo Bonzini <=
- [PULL 05/48] modules: add modinfo macros, Paolo Bonzini, 2021/07/08
- [PULL 10/48] modules: add virtio-gpu module annotations, Paolo Bonzini, 2021/07/08
- [PULL 12/48] modules: add audio module annotations, Paolo Bonzini, 2021/07/08
- [PULL 07/48] modules: generate modinfo.c, Paolo Bonzini, 2021/07/08
- [PULL 09/48] modules: add qxl module annotations, Paolo Bonzini, 2021/07/08
- [PULL 13/48] modules: add usb-redir module annotations, Paolo Bonzini, 2021/07/08
- [PULL 14/48] modules: add ccid module annotations, Paolo Bonzini, 2021/07/08
- [PULL 08/48] modules: check if all dependencies can be satisfied, Paolo Bonzini, 2021/07/08
- [PULL 11/48] modules: add chardev module annotations, Paolo Bonzini, 2021/07/08
- [PULL 15/48] modules: add ui module annotations, Paolo Bonzini, 2021/07/08