]> Devi Nivas Git - cs3210-lab1.git/commitdiff
mkfs: avoid clash with system struct stat
authorRuss Cox <rsc@swtch.com>
Mon, 10 Jan 2011 15:43:40 +0000 (10:43 -0500)
committerRuss Cox <rsc@swtch.com>
Mon, 10 Jan 2011 15:43:40 +0000 (10:43 -0500)
mkfs.c

diff --git a/mkfs.c b/mkfs.c
index f227b5f6c266d4704975e883df427648d45c6059..ffd6745d74941b350388d3d3d46128df22ef06fd 100644 (file)
--- a/mkfs.c
+++ b/mkfs.c
@@ -4,6 +4,8 @@
 #include <string.h>
 #include <fcntl.h>
 #include <assert.h>
+
+#define stat xv6_stat  // avoid clash with host struct stat
 #include "types.h"
 #include "fs.h"
 #include "stat.h"