Sync usage with man page.
[netbsd-mini2440.git] / lib / libc / compat / gen / compat_readdir.c
blob2938b031906acbfcb15bb66ffe6ceafa12e697b8
1 /* $NetBSD: readdir.c,v 1.19 2005/08/19 02:04:54 christos Exp $ */
3 #define __LIBC12_SOURCE__
4 #include "namespace.h"
5 #include <dirent.h>
6 #include <compat/include/dirent.h>
8 #ifdef __weak_alias
9 __weak_alias(readdir,_readdir)
10 __weak_alias(readdir_r,_readdir_r)
11 #endif
13 #ifdef __warn_references
14 __warn_references(readdir,
15 "warning: reference to compatibility readdir(); include <dirent.h> for correct reference")
16 __warn_references(readdir_r,
17 "warning: reference to compatibility readdir_r(); include <dirent.h> for correct reference")
18 #endif
20 #define dirent dirent12
22 #include "gen/readdir.c"