Build correctly on FreeBSD.
(Will this process ever reach a fixed point?)
This commit is contained in:
parent
d2c4ee9e48
commit
f9355efb2e
4 changed files with 6 additions and 6 deletions
|
|
@ -123,7 +123,7 @@ dirread(int fd, Dir **dp)
|
||||||
if(buf == nil)
|
if(buf == nil)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
n = getdents(fd, (struct dirent*)buf, st.st_blksize);
|
n = getdents(fd, (void*)buf, st.st_blksize);
|
||||||
if(n < 0){
|
if(n < 0){
|
||||||
free(buf);
|
free(buf);
|
||||||
return -1;
|
return -1;
|
||||||
|
|
@ -156,7 +156,7 @@ dirreadall(int fd, Dir **d)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
buf = nbuf;
|
buf = nbuf;
|
||||||
n = getdents(fd, (struct dirent*)(buf+ts), st.st_blksize);
|
n = getdents(fd, (void*)(buf+ts), st.st_blksize);
|
||||||
if(n <= 0)
|
if(n <= 0)
|
||||||
break;
|
break;
|
||||||
ts += n;
|
ts += n;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#include <u.h>
|
#include <u.h>
|
||||||
#define _NO9DEFINES_
|
#define NOPLAN9DEFINES
|
||||||
#include <libc.h>
|
#include <libc.h>
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ OFILES=\
|
||||||
fmtstr.$O\
|
fmtstr.$O\
|
||||||
fmtvprint.$O\
|
fmtvprint.$O\
|
||||||
fprint.$O\
|
fprint.$O\
|
||||||
|
nan64.$O\
|
||||||
print.$O\
|
print.$O\
|
||||||
runefmtstr.$O\
|
runefmtstr.$O\
|
||||||
runeseprint.$O\
|
runeseprint.$O\
|
||||||
|
|
@ -41,7 +42,6 @@ OFILES=\
|
||||||
vsmprint.$O\
|
vsmprint.$O\
|
||||||
vsnprint.$O\
|
vsnprint.$O\
|
||||||
$NUM\
|
$NUM\
|
||||||
$NAN\
|
|
||||||
|
|
||||||
HFILES=\
|
HFILES=\
|
||||||
fmtdef.h\
|
fmtdef.h\
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ cd libfmt
|
||||||
9c fmtstr.c
|
9c fmtstr.c
|
||||||
9c fmtvprint.c
|
9c fmtvprint.c
|
||||||
9c fprint.c
|
9c fprint.c
|
||||||
|
9c nan64.c
|
||||||
9c print.c
|
9c print.c
|
||||||
9c runefmtstr.c
|
9c runefmtstr.c
|
||||||
9c runeseprint.c
|
9c runeseprint.c
|
||||||
|
|
@ -55,8 +56,7 @@ cd libfmt
|
||||||
9c vsnprint.c
|
9c vsnprint.c
|
||||||
9c charstod.c
|
9c charstod.c
|
||||||
9c pow10.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 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
|
||||||
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
|
|
||||||
cd ..
|
cd ..
|
||||||
cd libbio
|
cd libbio
|
||||||
9c bbuffered.c
|
9c bbuffered.c
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue