- use mtio.h from kernel-headers instead of the mt-st one
This commit is contained in:
parent
95842dae42
commit
cf2451e795
22
mt-st-0.9b-mtio.patch
Normal file
22
mt-st-0.9b-mtio.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- mt-st-0.9b/mt.c.mtio 2007-02-07 08:09:43.000000000 -0500
|
||||
+++ mt-st-0.9b/mt.c 2007-02-07 08:09:43.000000000 -0500
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
-#include "mtio.h"
|
||||
+#include <linux/mtio.h>
|
||||
|
||||
#ifndef DEFTAPE
|
||||
#define DEFTAPE "/dev/tape" /* default tape device */
|
||||
--- mt-st-0.9b/stinit.c.mtio 2005-08-21 14:47:51.000000000 -0400
|
||||
+++ mt-st-0.9b/stinit.c 2007-02-07 08:10:20.000000000 -0500
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <linux/major.h>
|
||||
#include <scsi/sg.h>
|
||||
|
||||
-#include "mtio.h"
|
||||
+#include <linux/mtio.h>
|
||||
|
||||
#ifndef FALSE
|
||||
#define TRUE 1
|
||||
@ -9,6 +9,7 @@ Patch0: mt-st-0.8-redhat.patch
|
||||
Patch1: mt-st-0.7-SDLT.patch
|
||||
Patch2: mt-st-0.7-config-files.patch
|
||||
Patch3: mt-st-0.9b-manfix.patch
|
||||
Patch4: mt-st-0.9b-mtio.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%description
|
||||
@ -24,6 +25,7 @@ Install mt-st if you need a tool to manage tape drives.
|
||||
%patch1 -p1 -b .sdlt
|
||||
%patch2 -p1 -b .configfiles
|
||||
%patch3 -p1 -b .manfix
|
||||
%patch4 -p1 -b .mtio
|
||||
|
||||
%build
|
||||
make CFLAGS="$RPM_OPT_FLAGS"
|
||||
@ -45,6 +47,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%changelog
|
||||
* Wed Feb 7 2007 Jindrich Novy <jnovy@redhat.com> - 0.9b-3
|
||||
- spec fixes
|
||||
- use mtio.h from kernel-headers instead of the mt-st one
|
||||
|
||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.9b-2.2.2
|
||||
- rebuild
|
||||
|
||||
Loading…
Reference in New Issue
Block a user