tOS X crap - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 7c809320cadf39a2dcaba904b9ee6a67d58f9427
parent 2305af1c11b3cbf2f184cb45d8875676b584b33b
Author: rsc 
Date:   Fri,  4 May 2007 01:42:24 +0000

OS X crap

Diffstat:
  M src/cmd/venti/srv/arena.c           |       1 +
  M src/cmd/venti/srv/config.c          |       5 +++++
  M src/cmd/venti/srv/fns.h             |       1 +

3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/cmd/venti/srv/arena.c b/src/cmd/venti/srv/arena.c
t@@ -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
t@@ -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
t@@ -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);