ports/tcc: Fix building on 32 bit

This commit is contained in:
Bananymous 2025-04-23 08:43:27 +03:00
parent 35b3c3c98c
commit 53e9eab0cd
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -ruN tcc-0.9.27/tccrun.c tcc-0.9.27-banan_os/tccrun.c
--- tcc-0.9.27/tccrun.c 2017-12-17 10:27:05.000000000 +0200
+++ tcc-0.9.27-banan_os/tccrun.c 2025-04-15 23:42:45.677267898 +0300
@@ -562,7 +562,7 @@
#ifdef __i386__
/* fix for glibc 2.1 */
-#ifndef REG_EIP
+#if defined(REG_EIP) && !defined(__banan_os__)
#define REG_EIP EIP
#define REG_EBP EBP
#endif