From 9e3c33e5f154bae655a7e2e5b9a8f8b190791245 Mon Sep 17 00:00:00 2001 From: Stelian Pop Date: Wed, 7 Jul 2004 11:07:29 +0000 Subject: [PATCH] Do not include kernel headers, use sys/mount.h for getting BLKFLSBUF definition. --- dump/tape.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dump/tape.c b/dump/tape.c index d615960..2df4d1e 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.85 2004/07/01 09:14:49 stelian Exp $"; + "$Id: tape.c,v 1.86 2004/07/07 11:07:29 stelian Exp $"; #endif /* not lint */ #include @@ -60,7 +60,11 @@ int write(), read(); #ifdef __linux__ #include #include -#include /* for definition of BLKFLSBUF */ +#include +#include /* for definition of BLKFLSBUF */ +#ifndef BLKFLSBUF /* last resort... */ +#define BLKFLSBUF _IO(0x12, 97) /* Flush buffer cache. */ +#endif #include #endif #include -- 2.39.5