URI: 
       tall: fix openbsd build - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 0c2926638b9c5f5a9f2f22a300f031ed2dc71979
   DIR parent bab43f07d31d9fb5058704878fecd629c281af1f
  HTML Author: Aram Hăvărneanu <aram@mgk.ro>
       Date:   Sun, 22 Mar 2015 13:14:41 +0100
       
       all: fix openbsd build
       
       Change-Id: I6eaeebc9b6a4d78ce07efe7680ba8f2eff16462f
       Reviewed-on: https://plan9port-review.googlesource.com/1230
       Reviewed-by: Minux Ma <minux@golang.org>
       Reviewed-by: Russ Cox <rsc@google.com>
       
       Diffstat:
         M src/cmd/auxstats/OpenBSD.c          |       3 ++-
         M src/lib9/dirread.c                  |       4 ++--
       
       2 files changed, 4 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/src/cmd/auxstats/OpenBSD.c b/src/cmd/auxstats/OpenBSD.c
       t@@ -3,11 +3,12 @@
        #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>
   DIR diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c
       t@@ -25,14 +25,14 @@ mygetdents(int fd, struct dirent *buf, int n)
                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)
        {