Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37853341
en ru br
ALT Linux repos
S:0.10-alt5
5.0: 0.10-alt3
4.1: 0.10-alt2
4.0: 0.10-alt2

Group :: System/Libraries
RPM: lrmi

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: lrmi-0.10-linux-defs.patch
Download


diff -urN lrmi-0.10.orig/lrmi.c lrmi-0.10/lrmi.c
--- lrmi-0.10.orig/lrmi.c	2005-12-05 01:44:44 +0200
+++ lrmi-0.10/lrmi.c	2008-09-16 17:38:00 +0300
@@ -32,6 +32,7 @@
 #if defined(__linux__)
 
 #include <asm/vm86.h>
+#include <asm/processor-flags.h>
 #include <signal.h>
 
 #ifdef USE_LIBC_VM86
@@ -239,6 +240,18 @@
 
 
 #if defined(__linux__)
+#ifndef IF_MASK
+#define IF_MASK X86_EFLAGS_IF
+#endif
+#ifndef IOPL_MASK
+#define IOPL_MASK X86_EFLAGS_IOPL
+#endif
+#ifndef VIF_MASK
+#define VIF_MASK X86_EFLAGS_VIF
+#endif
+#ifndef TF_MASK
+#define TF_MASK X86_EFLAGS_TF
+#endif
 #define DEFAULT_VM86_FLAGS 	(IF_MASK | IOPL_MASK)
 #elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
 #define DEFAULT_VM86_FLAGS  (PSL_I | PSL_IOPL)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin