[libdazzle: 1/2] build: fix build on Solaris 10 with GCC 8.4
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle: 1/2] build: fix build on Solaris 10 with GCC 8.4
- Date: Mon, 17 May 2021 23:13:44 +0000 (UTC)
commit b33d4309394f921c8d711cbaed237ed7da219d7c
Author: Claes Nästén <pekdon gmail com>
Date: Mon May 17 14:35:41 2021 +0200
build: fix build on Solaris 10 with GCC 8.4
munmap on Solaris 10, depending on compile time defines can use caddr_t
instead of void* as its argument failing the build with the following
error message:
error: passing argument 1 of 'munmap' from incompatible pointer type
cast to void*, should be safe.
src/util/dzl-counter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/util/dzl-counter.c b/src/util/dzl-counter.c
index 2cf972e..f57f936 100644
--- a/src/util/dzl-counter.c
+++ b/src/util/dzl-counter.c
@@ -418,7 +418,7 @@ _dzl_counter_arena_destroy (DzlCounterArena *arena)
g_assert (arena != NULL);
if (arena->data_is_mmapped)
- munmap (arena->cells, arena->data_length);
+ munmap ((void *)arena->cells, arena->data_length);
else
#ifdef G_OS_WIN32
/* Allocated with _aligned_malloc() */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]