thirdparty: fix compilation of programs using miniz.h on macos

This commit is contained in:
Delyan Angelov 2024-09-15 13:35:18 +03:00
parent 5fcfc27e50
commit 26c560bc82
2 changed files with 9 additions and 2 deletions

View file

@ -402,6 +402,13 @@ fn get_all_commands() []Command {
rmfile: 'v.c'
}
}
$if linux || macos {
res << Command{
line: '${vexe} -gc none -no-retry-compilation -cc tcc -d use_openssl -showcc examples/veb/todo/main.v'
okmsg: 'A simple veb app, compiles with `-gc none -no-retry-compilation -cc tcc -d use_openssl` on macos and linux'
rmfile: 'examples/veb/todo/main'
}
}
$if linux {
res << Command{
line: '${vexe} vlib/v/tests/bench/bench_stbi_load.v && prlimit -v10485760 vlib/v/tests/bench/bench_stbi_load'

View file

@ -5026,7 +5026,7 @@ static int mz_mkdir(const char *pDirname) {
}
#ifndef MINIZ_NO_TIME
#if (defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
#if ( defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
#include <utime.h>
#else
#include <sys/utime.h>
@ -5073,7 +5073,7 @@ static int mz_mkdir(const char *pDirname) {
#elif defined(__TINYC__)
#ifndef MINIZ_NO_TIME
#if (defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
#if ( defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__FreeBSD_kernel__)) && !defined(FREEBSD)
#include <utime.h>
#else
#include <sys/utime.h>