summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/readdir_r.c
diff options
context:
space:
mode:
authormatthew <matthew@openbsd.org>2012-03-22 04:11:53 +0000
committermatthew <matthew@openbsd.org>2012-03-22 04:11:53 +0000
commite55576ca586feb852d7d9044bd637f0e55131029 (patch)
tree7d257fd2705586c2ba8713c384afea5af8f4954e /lib/libc/gen/readdir_r.c
parentHide behind #if 0 the sched_*() functions that we don't have yet (diff)
downloadwireguard-openbsd-e55576ca586feb852d7d9044bd637f0e55131029.tar.xz
wireguard-openbsd-e55576ca586feb852d7d9044bd637f0e55131029.zip
Make DIR a private type within libc, give it the same underlying
typedef regardless of __BSD_VISIBLE, and eliminate the dirfd() macro. ok guenther@
Diffstat (limited to 'lib/libc/gen/readdir_r.c')
-rw-r--r--lib/libc/gen/readdir_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/readdir_r.c b/lib/libc/gen/readdir_r.c
index 04a7fdc953f..f32d08a7044 100644
--- a/lib/libc/gen/readdir_r.c
+++ b/lib/libc/gen/readdir_r.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readdir_r.c,v 1.1 2009/11/18 07:43:22 guenther Exp $ */
+/* $OpenBSD: readdir_r.c,v 1.2 2012/03/22 04:11:53 matthew Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -32,6 +32,7 @@
#include <dirent.h>
#include <string.h>
#include <errno.h>
+#include "telldir.h"
#include "thread_private.h"
int