more netbsd support.
This commit is contained in:
parent
5ba33c04da
commit
8e4ae643c3
5 changed files with 12 additions and 1 deletions
1
src/cmd/9term/NetBSD.c
Normal file
1
src/cmd/9term/NetBSD.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "bsdpty.c"
|
||||
|
|
@ -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
1
src/libmach/NetBSD.c
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "FreeBSD.c"
|
||||
2
src/libthread/NetBSD.c
Normal file
2
src/libthread/NetBSD.c
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#include "Linux.c"
|
||||
|
||||
7
src/libthread/NetBSDasm.s
Normal file
7
src/libthread/NetBSDasm.s
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
.globl _tas
|
||||
_tas:
|
||||
movl $0xCAFEBABE, %eax
|
||||
movl 4(%esp), %ecx
|
||||
xchgl %eax, 0(%ecx)
|
||||
ret
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue