commit - bab43f07d31d9fb5058704878fecd629c281af1f
commit + 0c2926638b9c5f5a9f2f22a300f031ed2dc71979
blob - b34f5b1052547adf3dd343a087a4731f07f06a65
blob + f800c05c37b244b55346762e53079afba450c143
--- src/cmd/auxstats/OpenBSD.c
+++ src/cmd/auxstats/OpenBSD.c
#include <nlist.h>
#include <sys/types.h>
#include <sys/param.h>
+#include <sys/sched.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
#include <sys/time.h>
-#include <sys/dkstat.h>
#include <net/if.h>
+#include <net/if_var.h>
#include <machine/apmvar.h>
#include <sys/ioctl.h>
#include <uvm/uvm_param.h>
blob - f977d15dc0ebbfd40a9b2c4c0b919f3b4d51a20b
blob + 40fbe3c744d7b7be27d8b75dd0d4f8379720f419
--- src/lib9/dirread.c
+++ src/lib9/dirread.c
long off;
return getdirentries(fd, (void*)buf, n, &off);
}
-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
static int
mygetdents(int fd, struct dirent *buf, int n)
{
off_t off;
return getdirentries(fd, (void*)buf, n, &off);
}
-#elif defined(__sun__) || defined(__NetBSD__)
+#elif defined(__sun__) || defined(__NetBSD__) || defined(__OpenBSD__)
static int
mygetdents(int fd, struct dirent *buf, int n)
{