summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2005-06-14 06:43:00 +0000
committerNeil Brown <neilb@suse.de>2005-06-14 06:43:00 +0000
commitfe6729fa8cde33bce8d693e3f082fae688b1ff09 (patch)
tree610c3faeb9f95527fe5e95e2dbc157ba346151f8 /util.c
parentccf44f32725e5a86ba1ee78538df5f27b1de46eb (diff)
downloadmdadm-fe6729fa8cde33bce8d693e3f082fae688b1ff09.tar.gz
mdadm-fe6729fa8cde33bce8d693e3f082fae688b1ff09.tar.xz
mdadm-fe6729fa8cde33bce8d693e3f082fae688b1ff09.zip
Fix compilation with tinyc
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/util.c b/util.c
index fab0192..8756d49 100644
--- a/util.c
+++ b/util.c
@@ -548,7 +548,6 @@ void put_md_name(char *name)
-
struct superswitch *superlist[] = { &super0, &super1, NULL };
struct supertype *super_by_version(int vers, int minor)
@@ -610,3 +609,9 @@ struct supertype *guess_super(int fd)
free(st);
return NULL;
}
+
+#ifdef __TINYC__
+/* tinyc doesn't optimize this check in ioctl.h out ... */
+unsigned int __invalid_size_argument_for_IOC = 0;
+#endif
+