getsize.c: Under linux, manually define the ioctl for BLKGETSIZE if it
isn't already defined and it's safe to do so.
.cvsignore:
Ignore build files when builddir==srcdir
--- /dev/null
+Makefile
+e2fsck
+e2fsck.8
+e2fsck.shared
+e2fsck.static
+profiled
2000-05-25 <tytso@snap.thunk.org>
* getsize.c (ext2fs_get_device_size): Use open64() instead of
- open() if it exists.
+ open() if it exists. Under linux, manually define the
+ ioctl for BLKGETSIZE if it isn't already defined and it's
+ safe to do so.
* unix_io.c (unix_open): Use open64() instead of open() if it
exists.
#include <sys/disklabel.h>
#endif /* HAVE_SYS_DISKLABEL_H */
+#if defined(__linux__) && defined(_IO) && !defined(BLKGETSIZE)
+#define BLKGETSIZE _IO(0x12,96) /* return device size */
+#endif
+
#if EXT2_FLAT_INCLUDES
#include "ext2_fs.h"
#else