File atitvout.dif of Package atitvout

--- Makefile
+++ Makefile
@@ -1,5 +1,5 @@
 VERSION=0.4
-CFLAGS=-Wall -O2 -g -DVERSION=\"$(VERSION)\" -I./lrmi-0.6
+CFLAGS=-Wall $(RPM_OPT_FLAGS) -DVERSION=\"$(VERSION)\" -I./lrmi-0.6
 OBJS=atitvout.o ati.o vbeinfo.o vbecall.o mach64.o radeon.o
 TAR=atitvout-$(VERSION).tar.gz
 BINARY=atitvout
@@ -21,10 +21,10 @@
 	make -C lrmi-0.6 clean
 
 install: strip
-	install -g root -o root -m 555 $(BINARY) /usr/local/sbin
+	install -g root -o root -m 555 $(BINARY) /usr/sbin
 
 deinstall:
-	rm -f /usr/local/sbin/$(BINARY)
+	rm -f /usr/sbin/$(BINARY)
 
 README: README.in
 	sed s/VERSION/$(VERSION)/ < README.in > README
--- lrmi-0.6/Makefile
+++ lrmi-0.6/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -g -Wall
+CFLAGS = $(RPM_OPT_FLAGS)
 
 sources = lrmi.c
 objects = lrmi.o
--- lrmi-0.6/lrmi.c
+++ lrmi-0.6/lrmi.c
@@ -30,6 +30,19 @@
 #define REAL_MEM_SIZE 	0x10000
 #define REAL_MEM_BLOCKS 	0x100
 
+#ifndef IOPL_MASK
+#define IOPL_MASK X86_EFLAGS_IOPL
+#endif
+#ifndef IF_MASK
+#define IF_MASK X86_EFLAGS_IF
+#endif
+#ifndef VIF_MASK
+#define VIF_MASK X86_EFLAGS_VIF
+#endif
+#ifndef TF_MASK
+#define TF_MASK X86_EFLAGS_TF
+#endif
+
 struct mem_block
 	{
 	unsigned int size : 20;
--- lrmi-0.6/vbetest.c
+++ lrmi-0.6/vbetest.c
@@ -10,6 +10,7 @@
 #include <sys/ioctl.h>
 #include <sys/kd.h>
 #include <sys/stat.h>
+#include <sys/io.h>
 
 #include "lrmi.h"
 #include "vbe.h"
--- mach64.c
+++ mach64.c
@@ -18,6 +18,7 @@
 
 #include <lrmi.h>
 #include <stdio.h>
+#include <string.h>
 
 #include "ati.h"
 #include "mach64.h"
--- radeon.c
+++ radeon.c
@@ -18,6 +18,7 @@
 
 #include <lrmi.h>
 #include <stdio.h>
+#include <string.h>
 
 #include "ati.h"
 #include "radeon.h"