From: Stelian Pop Date: Wed, 7 Jul 2004 11:07:29 +0000 (+0000) Subject: Do not include kernel headers, use sys/mount.h for getting BLKFLSBUF definition. X-Git-Tag: release_0_4b38~13 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9e3c33e5f154bae655a7e2e5b9a8f8b190791245;p=dump.git Do not include kernel headers, use sys/mount.h for getting BLKFLSBUF definition. --- 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