diff options
Diffstat (limited to 'lib/ext2fs/flushb.c')
-rw-r--r-- | lib/ext2fs/flushb.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ext2fs/flushb.c b/lib/ext2fs/flushb.c index ed4d3901..80a21179 100644 --- a/lib/ext2fs/flushb.c +++ b/lib/ext2fs/flushb.c @@ -65,12 +65,16 @@ errcode_t ext2fs_sync_device(int fd, int flushb) if (ioctl (fd, BLKFLSBUF, 0) == 0) return 0; #else - #warning BLKFLSBUF not defined + #ifdef __GNUC__ + #warning BLKFLSBUF not defined + #endif #endif #ifdef FDFLUSH ioctl (fd, FDFLUSH, 0); /* In case this is a floppy */ #else - #warning FDFLUSH not defined + #ifdef __GNUC__ + #warning FDFLUSH not defined + #endif #endif } return 0; |