From 7c809320cadf39a2dcaba904b9ee6a67d58f9427 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 4 May 2007 01:42:24 +0000 Subject: OS X crap --- src/cmd/venti/srv/arena.c | 1 + src/cmd/venti/srv/config.c | 5 +++++ src/cmd/venti/srv/fns.h | 1 + 3 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/cmd/venti/srv/arena.c b/src/cmd/venti/srv/arena.c index 2b6d8f52..cc3ac62c 100644 --- a/src/cmd/venti/srv/arena.c +++ b/src/cmd/venti/srv/arena.c @@ -415,6 +415,7 @@ setatailstate(AState *as) /* * Look up as->arena to find index. */ + needmainindex(); /* OS X linker */ ix = mainindex; for(i=0; inarenas; i++) if(ix->arenas[i] == as->arena) diff --git a/src/cmd/venti/srv/config.c b/src/cmd/venti/srv/config.c index 209f5cda..8c537911 100644 --- a/src/cmd/venti/srv/config.c +++ b/src/cmd/venti/srv/config.c @@ -9,6 +9,11 @@ static ArenaPart *configarenas(char *file); static ISect *configisect(char *file); static Bloom *configbloom(char *file); +void +needmainindex(void) +{ +} + int initventi(char *file, Config *conf) { diff --git a/src/cmd/venti/srv/fns.h b/src/cmd/venti/srv/fns.h index 032e4b3b..cf529953 100644 --- a/src/cmd/venti/srv/fns.h +++ b/src/cmd/venti/srv/fns.h @@ -105,6 +105,7 @@ uint msec(void); int namecmp(char *s, char *t); void namecp(char *dst, char *src); int nameok(char *name); +void needmainindex(void); void needzeroscore(void); Arena *newarena(Part *part, u32int, char *name, u64int base, u64int size, u32int blocksize); ArenaPart *newarenapart(Part *part, u32int blocksize, u32int tabsize); -- cgit v1.2.3