OS X crap

This commit is contained in:
rsc 2007-05-04 01:42:24 +00:00
parent 2305af1c11
commit 7c809320ca
3 changed files with 7 additions and 0 deletions

View file

@ -415,6 +415,7 @@ setatailstate(AState *as)
/*
* Look up as->arena to find index.
*/
needmainindex(); /* OS X linker */
ix = mainindex;
for(i=0; i<ix->narenas; i++)
if(ix->arenas[i] == as->arena)

View file

@ -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)
{

View file

@ -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);