ci: fix failing musl jobs after 2684ef9 (#22667)

This commit is contained in:
Delyan Angelov 2024-10-27 11:58:53 +02:00 committed by GitHub
parent 731d07d6d6
commit d133d30b60
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -100,5 +100,5 @@ jobs:
run: v -skip-unused test vlib/builtin/ vlib/math vlib/flag/ vlib/os/ vlib/strconv/ run: v -skip-unused test vlib/builtin/ vlib/math vlib/flag/ vlib/os/ vlib/strconv/
- name: Test cross compilation to Linux - name: Test cross compilation to Linux
run: | run: |
v -d use_openssl -cc clang -showcc -gc none -o hi -os linux examples/hello_world.v v -o hi -os linux examples/hello_world.v
v -d use_openssl -cc clang -showcc -gc none -o hi -os linux examples/veb/veb_example.v v -d use_openssl -cc clang -showcc -gc none -o hi -os linux examples/veb/veb_example.v

View File

@ -1,7 +1,10 @@
module picoev module picoev
#include <sys/epoll.h> #include <sys/epoll.h>
$if !musl ? {
#include <sys/cdefs.h> // needed for cross compiling to linux #include <sys/cdefs.h> // needed for cross compiling to linux
}
fn C.epoll_create(int) int fn C.epoll_create(int) int
fn C.epoll_wait(int, voidptr, int, int) int fn C.epoll_wait(int, voidptr, int, int) int