diff --git a/src/cmd/auxstats/OpenBSD.c b/src/cmd/auxstats/OpenBSD.c index b34f5b10..f800c05c 100644 --- a/src/cmd/auxstats/OpenBSD.c +++ b/src/cmd/auxstats/OpenBSD.c @@ -3,11 +3,12 @@ #include #include #include +#include #include #include #include -#include #include +#include #include #include #include diff --git a/src/lib9/dirread.c b/src/lib9/dirread.c index f977d15d..40fbe3c7 100644 --- a/src/lib9/dirread.c +++ b/src/lib9/dirread.c @@ -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) {