summaryrefslogtreecommitdiff
path: root/cgpt/cgpt.h
diff options
context:
space:
mode:
Diffstat (limited to 'cgpt/cgpt.h')
-rw-r--r--cgpt/cgpt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgpt/cgpt.h b/cgpt/cgpt.h
index 1c809161..6851ded7 100644
--- a/cgpt/cgpt.h
+++ b/cgpt/cgpt.h
@@ -10,6 +10,7 @@
#endif
#define _FILE_OFFSET_BITS 64
+#include <fcntl.h>
#include <features.h>
#include <stdint.h>
#include <stdio.h>
@@ -61,7 +62,8 @@ struct drive {
};
-int DriveOpen(const char *drive_path, struct drive *drive);
+/* mode should be O_RDONLY or O_RDWR */
+int DriveOpen(const char *drive_path, struct drive *drive, int mode);
int DriveClose(struct drive *drive, int update_as_needed);
int CheckValid(const struct drive *drive);