commit 0c2926638b9c5f5a9f2f22a300f031ed2dc71979 from: Aram Hăvărneanu via: Russ Cox date: Wed Jun 03 15:31:44 2015 UTC all: fix openbsd build Change-Id: I6eaeebc9b6a4d78ce07efe7680ba8f2eff16462f Reviewed-on: https://plan9port-review.googlesource.com/1230 Reviewed-by: Minux Ma Reviewed-by: Russ Cox commit - bab43f07d31d9fb5058704878fecd629c281af1f commit + 0c2926638b9c5f5a9f2f22a300f031ed2dc71979 blob - b34f5b1052547adf3dd343a087a4731f07f06a65 blob + f800c05c37b244b55346762e53079afba450c143 --- src/cmd/auxstats/OpenBSD.c +++ src/cmd/auxstats/OpenBSD.c @@ -3,11 +3,12 @@ #include #include #include +#include #include #include #include -#include #include +#include #include #include #include blob - f977d15dc0ebbfd40a9b2c4c0b919f3b4d51a20b blob + 40fbe3c744d7b7be27d8b75dd0d4f8379720f419 --- src/lib9/dirread.c +++ 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) {