commit f9355efb2e3c9f7c9476f3d9e22dd0ff3e87db65 from: rsc date: Mon Nov 24 00:47:50 2003 UTC Build correctly on FreeBSD. (Will this process ever reach a fixed point?) commit - d2c4ee9e488f6c94865cc2f4c874d025bc2ae0d2 commit + f9355efb2e3c9f7c9476f3d9e22dd0ff3e87db65 blob - d19429e84b1d029c008684ed6593e392930c88a0 blob + 359b09ec1ece7a1eb775451d06bda51171871626 --- src/lib9/dirread.c +++ src/lib9/dirread.c @@ -123,7 +123,7 @@ dirread(int fd, Dir **dp) if(buf == nil) return -1; - n = getdents(fd, (struct dirent*)buf, st.st_blksize); + n = getdents(fd, (void*)buf, st.st_blksize); if(n < 0){ free(buf); return -1; @@ -156,7 +156,7 @@ dirreadall(int fd, Dir **d) return -1; } buf = nbuf; - n = getdents(fd, (struct dirent*)(buf+ts), st.st_blksize); + n = getdents(fd, (void*)(buf+ts), st.st_blksize); if(n <= 0) break; ts += n; blob - a75305cf80e15d398751453bce5f1b162d0c599c blob + b8ef94278fc8595269192e85bbf9f8219bdc4d6c --- src/lib9/postnote.c +++ src/lib9/postnote.c @@ -1,5 +1,5 @@ #include -#define _NO9DEFINES_ +#define NOPLAN9DEFINES #include #include blob - 4a03a338c9d1ba6284451833bedb98345d8e4135 blob + 0a5d3b6725fd6557becff7f37dd62ba71e794f81 --- src/libfmt/mkfile +++ src/libfmt/mkfile @@ -22,6 +22,7 @@ OFILES=\ fmtstr.$O\ fmtvprint.$O\ fprint.$O\ + nan64.$O\ print.$O\ runefmtstr.$O\ runeseprint.$O\ @@ -41,7 +42,6 @@ OFILES=\ vsmprint.$O\ vsnprint.$O\ $NUM\ - $NAN\ HFILES=\ fmtdef.h\ blob - 4cf96921a109681a82cbb2d0c116c29ac5e9adb2 blob + a52fb4af19612346087d02f139e552e73a3a1118 --- src/mkmk.sh +++ src/mkmk.sh @@ -35,6 +35,7 @@ cd libfmt 9c fmtstr.c 9c fmtvprint.c 9c fprint.c +9c nan64.c 9c print.c 9c runefmtstr.c 9c runeseprint.c @@ -55,8 +56,7 @@ cd libfmt 9c vsnprint.c 9c charstod.c 9c pow10.c -9c nan64.c -ar rvc ../../lib/libfmt.a dofmt.o errfmt.o fltfmt.o fmt.o fmtfd.o fmtfdflush.o fmtlock.o fmtprint.o fmtquote.o fmtrune.o fmtstr.o fmtvprint.o fprint.o print.o runefmtstr.o runeseprint.o runesmprint.o runesnprint.o runesprint.o runevseprint.o runevsmprint.o runevsnprint.o seprint.o smprint.o snprint.o sprint.o strtod.o vfprint.o vseprint.o vsmprint.o vsnprint.o charstod.o pow10.o nan64.o +ar rvc ../../lib/libfmt.a dofmt.o errfmt.o fltfmt.o fmt.o fmtfd.o fmtfdflush.o fmtlock.o fmtprint.o fmtquote.o fmtrune.o fmtstr.o fmtvprint.o fprint.o nan64.o print.o runefmtstr.o runeseprint.o runesmprint.o runesnprint.o runesprint.o runevseprint.o runevsmprint.o runevsnprint.o seprint.o smprint.o snprint.o sprint.o strtod.o vfprint.o vseprint.o vsmprint.o vsnprint.o charstod.o pow10.o cd .. cd libbio 9c bbuffered.c