diff options
author | George Matsumura <gmmatsumura01@bvsd.org> | 2020-08-30 18:29:05 -0600 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2020-09-02 10:29:04 +0000 |
commit | f2cb9ba49a222c6e17603f5fb8cbb02f82d0bbf7 (patch) | |
tree | e0aa9eeb969ab733bd424a04d90f13c9933aa57c /util | |
parent | b87e53dc1cc4dd33fa391f3ee8db02394b44a742 (diff) | |
download | cairo-f2cb9ba49a222c6e17603f5fb8cbb02f82d0bbf7.tar.gz |
meson: Fix musl build
This constitutes few fixes that are necessary to compile correctly
and reduce errors when using musl libc.
Signed-off-by: George Matsumura <gmmatsumura01@bvsd.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/cairo-trace/trace.c | 2 | ||||
-rw-r--r-- | util/meson.build | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index 28ec11941..bb618b5d9 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -784,7 +784,7 @@ static cairo_bool_t _init_logfile (void) { static cairo_bool_t initialized; - char buf[4096]; + char buf[4105]; const char *filename; const char *env; diff --git a/util/meson.build b/util/meson.build index 3f16d7c78..6982ad758 100644 --- a/util/meson.build +++ b/util/meson.build @@ -58,8 +58,7 @@ foreach util : cairo_utils ) endforeach -# This is useless and doesn't build on Windows -if host_machine.system() != 'windows' +if cc.has_header_symbol('malloc.h', '__malloc_hook') libmallocstats = library('malloc-stats', 'malloc-stats.c') endif |