Skip to content

Commit 0c7de2e

Browse files
authored
cgen,os: fix tcc __attribute__, fix os.notify (followup to #25779) (#25804)
1 parent 0ea83ce commit 0c7de2e

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

vlib/os/notify/backend_linux.c.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module notify
33
import time
44
import os
55

6-
#insert "@VEXEROOT/vlib/os/notify/epoll.h"
6+
#include <sys/epoll.h>
77

88
pub struct C.epoll_event {
99
events u32

vlib/os/notify/epoll.h

Lines changed: 0 additions & 12 deletions
This file was deleted.

vlib/v/gen/c/cheaders.v

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,11 @@ typedef int (*qsort_callback_func)(const void*, const void*);
309309
#include <stdlib.h>
310310
#include <string.h>
311311
#include <stdarg.h> // for va_list
312+
#if defined(__TINYC__)
313+
// https://lists.nongnu.org/archive/html/tinycc-devel/2025-10/msg00007.html
314+
// gnu headers use to #define __attribute__ to empty for non-gcc compilers
315+
#undef __attribute__
316+
#endif
312317
#ifdef __TERMUX__
313318
#if defined __BIONIC_AVAILABILITY_GUARD && __BIONIC_AVAILABILITY_GUARD(28)
314319
#else

0 commit comments

Comments
 (0)