more netbsd support.

This commit is contained in:
rsc 2005-03-28 19:37:33 +00:00
parent 5ba33c04da
commit 8e4ae643c3
5 changed files with 12 additions and 1 deletions

1
src/cmd/9term/NetBSD.c Normal file
View file

@ -0,0 +1 @@
#include "bsdpty.c"

View file

@ -18,7 +18,7 @@ mygetdents(int fd, struct dirent *buf, int n)
nn = getdirentries(fd, (void*)buf, n, &off);
return nn;
}
#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
static int
mygetdents(int fd, struct dirent *buf, int n)
{

1
src/libmach/NetBSD.c Normal file
View file

@ -0,0 +1 @@
#include "FreeBSD.c"

2
src/libthread/NetBSD.c Normal file
View file

@ -0,0 +1,2 @@
#include "Linux.c"

View file

@ -0,0 +1,7 @@
.globl _tas
_tas:
movl $0xCAFEBABE, %eax
movl 4(%esp), %ecx
xchgl %eax, 0(%ecx)
ret