Magellan Linux

Contents of /trunk/hwinfo/patches/hwinfo-15.3-fix-headers.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 790 - (show annotations) (download)
Sat May 9 13:15:30 2009 UTC (15 years ago) by niro
File size: 635 byte(s)
fixed missing defines with newer glibc/linux-headers

1 diff -Naur hwinfo-15.3/src/int10/i10_v86.c hwinfo-15.3-magellan/src/int10/i10_v86.c
2 --- hwinfo-15.3/src/int10/i10_v86.c 2005-04-01 12:19:13.000000000 +0200
3 +++ hwinfo-15.3-magellan/src/int10/i10_v86.c 2009-05-09 15:53:49.000000000 +0200
4 @@ -34,6 +34,14 @@
5 #include "v86bios.h"
6 #include "AsmMacros.h"
7
8 +#if defined(__linux__) && !defined(TF_MASK)
9 + #define TF_MASK X86_EFLAGS_TF
10 + #define IF_MASK X86_EFLAGS_IF
11 + #define VIF_MASK X86_EFLAGS_VIF
12 + #define VIP_MASK X86_EFLAGS_VIP
13 + #define NT_MASK X86_EFLAGS_NT
14 +#endif
15 +
16 extern int emu_vm86(struct vm86_struct *vm, unsigned debug);
17
18 #define INT2PTR(a) ((a) + (unsigned char *) 0)