summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-03-24 01:53:52 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-03-24 01:53:52 +0000
commit0dbb0ac2e4d1f02d89ff6e70d204e7491654b17f (patch)
treeb092920c0a6c20dc8cd50ab7e4c5449b238aa1d2
parent897ad8fd7ac1a7c853106af4a28e256371b513cb (diff)
Provide the old prototypes for scandir() and alphasort() for code that
requests the pre-standardized version requested by millert@
-rw-r--r--include/dirent.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/dirent.h b/include/dirent.h
index bebed33dc9a..e5c08235809 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dirent.h,v 1.27 2012/03/22 04:11:53 matthew Exp $ */
+/* $OpenBSD: dirent.h,v 1.28 2012/03/24 01:53:51 guenther Exp $ */
/* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */
/*-
@@ -98,6 +98,10 @@ int readdir_r(DIR *__restrict, struct dirent *__restrict,
int scandir(const char *, struct dirent ***, int (*)(struct dirent *),
int (*)(const struct dirent **, const struct dirent **));
int alphasort(const struct dirent **, const struct dirent **);
+#elif __BSD_VISIBLE
+int scandir(const char *, struct dirent ***, int (*)(struct dirent *),
+ int (*)(const void *, const void *));
+int alphasort(const void *, const void *);
#endif
#if __POSIX_VISIBLE >= 200809 || __XPG_VISIBLE > 600
int dirfd(DIR *);