Skip to content

Commit 2cdacb8

Browse files
committed
cgen: fix building on Termux after fa904c4
1 parent afc710e commit 2cdacb8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vlib/v/gen/c/cheaders.v

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,12 @@ typedef int (*qsort_callback_func)(const void*, const void*);
336336
337337
#include <stdarg.h> // for va_list
338338
339+
#ifdef __TERMUX__
340+
#if __BIONIC_AVAILABILITY_GUARD(28)
341+
#else
342+
void * aligned_alloc(size_t alignment, size_t size) { return malloc(size); }
343+
#endif
344+
#endif
339345
//================================== GLOBALS =================================*/
340346
int load_so(byteptr);
341347
void _vinit(int ___argc, voidptr ___argv);

0 commit comments

Comments
 (0)