summaryrefslogtreecommitdiffstats
path: root/partx/partx.h
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:25:54 +0100
committerKarel Zak2006-12-07 00:25:54 +0100
commit1d4ad1decc539c9729b592e6050460d6487c95f4 (patch)
treec158c5f5baf15ea4bab5c05b2f6e2bdaca332c29 /partx/partx.h
parentImported from util-linux-2.11o tarball. (diff)
downloadkernel-qcow2-util-linux-1d4ad1decc539c9729b592e6050460d6487c95f4.tar.gz
kernel-qcow2-util-linux-1d4ad1decc539c9729b592e6050460d6487c95f4.tar.xz
kernel-qcow2-util-linux-1d4ad1decc539c9729b592e6050460d6487c95f4.zip
Imported from util-linux-2.11q tarball.
Diffstat (limited to 'partx/partx.h')
-rw-r--r--partx/partx.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/partx/partx.h b/partx/partx.h
index b96588a59..efaa0640a 100644
--- a/partx/partx.h
+++ b/partx/partx.h
@@ -1,3 +1,6 @@
+#ifndef PARTX_H_INCLUDED
+#define PARTX_H_INCLUDED
+
/*
* For each partition type there is a routine that takes
* a block device and a range, and returns the list of
@@ -16,7 +19,7 @@ struct slice {
typedef int (ptreader)(int fd, struct slice all, struct slice *sp, int ns);
-extern ptreader read_dos_pt, read_bsd_pt, read_solaris_pt, read_unixware_pt;
+extern ptreader read_dos_pt, read_bsd_pt, read_solaris_pt, read_unixware_pt, read_gpt_pt;
char *getblock(int fd, unsigned int secnr);
@@ -24,3 +27,5 @@ static inline int
four2int(unsigned char *p) {
return p[0] + (p[1]<<8) + (p[2]<<16) + (p[3]<<24);
}
+
+#endif /* PARTX_H_INCLUDED */