aboutsummaryrefslogtreecommitdiff
path: root/src/libdiskfs
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-12-16 18:58:44 +0000
committerrsc <devnull@localhost>2005-12-16 18:58:44 +0000
commitd3285dcb5cd45ccea1e9a7cf439f61f771f08274 (patch)
treecead92a0c745c8ce4e472dd63393a167fdfdce31 /src/libdiskfs
parent693cab16ccae2e3498ab3318c6a42e2a18c2099f (diff)
downloadplan9port-d3285dcb5cd45ccea1e9a7cf439f61f771f08274.tar.gz
plan9port-d3285dcb5cd45ccea1e9a7cf439f61f771f08274.tar.bz2
plan9port-d3285dcb5cd45ccea1e9a7cf439f61f771f08274.zip
avoid dup symbol for os x
Diffstat (limited to 'src/libdiskfs')
-rw-r--r--src/libdiskfs/file.c4
-rw-r--r--src/libdiskfs/venti.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libdiskfs/file.c b/src/libdiskfs/file.c
index b72f053d..6843e341 100644
--- a/src/libdiskfs/file.c
+++ b/src/libdiskfs/file.c
@@ -2,6 +2,8 @@
#include <libc.h>
#include <diskfs.h>
+int nfilereads;
+
typedef struct DiskFile DiskFile;
struct DiskFile
{
@@ -9,8 +11,6 @@ struct DiskFile
int fd;
};
-int nfilereads;
-
static long
preadn(int fd, void *vdata, u32int ulen, u64int offset)
{
diff --git a/src/libdiskfs/venti.c b/src/libdiskfs/venti.c
index ba314388..5d8528c2 100644
--- a/src/libdiskfs/venti.c
+++ b/src/libdiskfs/venti.c
@@ -13,7 +13,7 @@ struct DiskVenti
VtCache *c;
};
-int nfilereads;
+extern int nfilereads;
/*
* This part is like file.c but doesn't require storing the root block