diff options
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/lrmi/lrmi-0.10-newheaders.patch | 39 | ||||
-rw-r--r-- | libraries/lrmi/lrmi.SlackBuild | 3 | ||||
-rw-r--r-- | libraries/lrmi/lrmi.info | 4 |
3 files changed, 43 insertions, 3 deletions
diff --git a/libraries/lrmi/lrmi-0.10-newheaders.patch b/libraries/lrmi/lrmi-0.10-newheaders.patch new file mode 100644 index 0000000000..ae04c47e16 --- /dev/null +++ b/libraries/lrmi/lrmi-0.10-newheaders.patch @@ -0,0 +1,39 @@ +diff -up lrmi-0.10/lrmi.c.BAD lrmi-0.10/lrmi.c +--- lrmi-0.10/lrmi.c.BAD 2008-09-17 14:41:28.000000000 -0400 ++++ lrmi-0.10/lrmi.c 2008-09-17 14:45:17.000000000 -0400 +@@ -239,7 +239,7 @@ LRMI_free_real(void *m) + + + #if defined(__linux__) +-#define DEFAULT_VM86_FLAGS (IF_MASK | IOPL_MASK) ++#define DEFAULT_VM86_FLAGS (X86_EFLAGS_IF | X86_EFLAGS_IOPL) + #elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) + #define DEFAULT_VM86_FLAGS (PSL_I | PSL_IOPL) + #define TF_MASK PSL_T +@@ -822,7 +822,7 @@ run_vm86(void) + + CONTEXT_REGS.REG(cs) = get_int_seg(v); + CONTEXT_REGS.REG(eip) = get_int_off(v); +- CONTEXT_REGS.REG(eflags) &= ~(VIF_MASK | TF_MASK); ++ CONTEXT_REGS.REG(eflags) &= ~(X86_EFLAGS_VIF | X86_EFLAGS_TF); + + continue; + } +@@ -862,7 +862,7 @@ vm86_callback(int sig, int code, struct + + CONTEXT_REGS.REG(cs) = get_int_seg(v); + CONTEXT_REGS.REG(eip) = get_int_off(v); +- CONTEXT_REGS.REG(eflags) &= ~(VIF_MASK | TF_MASK); ++ CONTEXT_REGS.REG(eflags) &= ~(X86_EFLAGS_VIF | X86_EFLAGS_TF); + + break; + } +@@ -916,7 +916,7 @@ vm86_callback(int sig, int code, struct + + CONTEXT_REGS.REG(cs) = get_int_seg(addr[1]); + CONTEXT_REGS.REG(eip) = get_int_off(addr[1]); +- CONTEXT_REGS.REG(eflags) &= ~(VIF_MASK | TF_MASK); ++ CONTEXT_REGS.REG(eflags) &= ~(X86_EFLAGS_VIF | X86_EFLAGS_TF); + } else { + if (emulate() == 0) { + context.success = 0; diff --git a/libraries/lrmi/lrmi.SlackBuild b/libraries/lrmi/lrmi.SlackBuild index 4ccafb7a2e..9b947dbb58 100644 --- a/libraries/lrmi/lrmi.SlackBuild +++ b/libraries/lrmi/lrmi.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for lrmi -# Copyright 2008 Heinz Wiesinger <hmwiesinger@gmx.at> +# Copyright 2008 Heinz Wiesinger <pprkut@liwjatan.at> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -57,6 +57,7 @@ find . \ -exec chmod 644 {} \; patch -p1 -i $CWD/Makefile.diff +patch -p1 -i $CWD/lrmi-0.10-newheaders.patch CFLAGS=$SLKCFLAGS \ make diff --git a/libraries/lrmi/lrmi.info b/libraries/lrmi/lrmi.info index 4821bd380e..b4160eb1ec 100644 --- a/libraries/lrmi/lrmi.info +++ b/libraries/lrmi/lrmi.info @@ -4,5 +4,5 @@ HOMEPAGE="http://sourceforge.net/projects/lrmi" DOWNLOAD="http://downloads.sourceforge.net/lrmi/lrmi-0.10.tar.gz" MD5SUM="fc1d9495e8f4563fca471bb65f34a5da" MAINTAINER="ppr:kut" -EMAIL="HMWiesinger@gmx.at" -APPROVED="David Somero" +EMAIL="pprkut@liwjatan.at" +APPROVED="dsomero" |