diff options
author | Aram Hăvărneanu <aram@mgk.ro> | 2015-03-22 13:14:41 +0100 |
---|---|---|
committer | Russ Cox <rsc@google.com> | 2015-06-03 15:31:44 +0000 |
commit | 0c2926638b9c5f5a9f2f22a300f031ed2dc71979 (patch) | |
tree | 5822e1ab8fd06beba792b889e724d2a591c3268e /src/lib9 | |
parent | bab43f07d31d9fb5058704878fecd629c281af1f (diff) | |
download | plan9port-0c2926638b9c5f5a9f2f22a300f031ed2dc71979.tar.gz plan9port-0c2926638b9c5f5a9f2f22a300f031ed2dc71979.tar.bz2 plan9port-0c2926638b9c5f5a9f2f22a300f031ed2dc71979.zip |
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 (limited to 'src/lib9')
-rw-r--r-- | src/lib9/dirread.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |