aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ext2fs/flushb.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-03-06 11:09:18 -0500
committerTheodore Ts'o <tytso@mit.edu>2003-03-06 11:09:18 -0500
commited78c021c3b111d8ab9a51aef5d5156e3004083f (patch)
tree8d9e92fb9a9bdb535ed06e67bc8981f63e56d67f /lib/ext2fs/flushb.c
parent94ba8c750604d8d2487841a06cb930dd5f3bb43b (diff)
downloadandroid_external_e2fsprogs-ed78c021c3b111d8ab9a51aef5d5156e3004083f.tar.gz
android_external_e2fsprogs-ed78c021c3b111d8ab9a51aef5d5156e3004083f.tar.bz2
android_external_e2fsprogs-ed78c021c3b111d8ab9a51aef5d5156e3004083f.zip
Fix up lots of portability problems that caused e2fsprogs not to build successfully
under Solaris.
Diffstat (limited to 'lib/ext2fs/flushb.c')
-rw-r--r--lib/ext2fs/flushb.c8
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;