mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
libxt: fix _XtInherit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
diff --git libxt-clean/src/Initialize.c libxt-workdir/src/Initialize.c
|
||||
index 8ae54b4..d0f0968 100644
|
||||
--- libxt-clean/src/Initialize.c
|
||||
+++ libxt-workdir/src/Initialize.c
|
||||
@@ -197,7 +197,7 @@ _XtInherit(void)
|
||||
#define _XtInherit __XtInherit
|
||||
#endif
|
||||
|
||||
-#if defined (WIN32) || defined(__CYGWIN__)
|
||||
+#if defined (WIN32) || defined(__CYGWIN__) || defined(__astral__)
|
||||
/*
|
||||
* The Symbol _XtInherit is used in two different manners.
|
||||
* First it could be used as a generic function and second
|
||||
@@ -246,8 +246,8 @@ _XtInherit(void)
|
||||
* cygwin-xfree: http://www.cygwin.com/ml/cygwin-xfree/2003-10/msg00000.html
|
||||
*/
|
||||
|
||||
-#ifdef __x86_64__
|
||||
-asm(".section .trampoline, \"dwx\" \n\
|
||||
+#if defined(__x86_64__)
|
||||
+asm(".section .trampoline, \"awx\", @progbits \n\
|
||||
.globl _XtInherit \n\
|
||||
_XtInherit: \n\
|
||||
jmp *_y(%rip) \n\
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name=libxt
|
||||
revision=1
|
||||
revision=2
|
||||
from_source=libxt
|
||||
imagedeps="meson ninja-build build-essential"
|
||||
hostdeps="xgcc xbinutils pkgconfig util-macros"
|
||||
|
||||
Reference in New Issue
Block a user