1*f1582e88Smrg /* $NetBSD: compat_alphasort.c,v 1.2 2016/12/16 04:45:04 mrg Exp $ */ 22c266c8aSchristos 32c266c8aSchristos #include <sys/stat.h> 42c266c8aSchristos #define __LIBC12_SOURCE__ 52c266c8aSchristos #include "namespace.h" 62c266c8aSchristos #include <dirent.h> 72c266c8aSchristos #include <compat/include/dirent.h> 82c266c8aSchristos 92c266c8aSchristos #ifdef __weak_alias 102c266c8aSchristos __weak_alias(alphasort,_alphasort) 112c266c8aSchristos #endif 122c266c8aSchristos 132c266c8aSchristos #ifdef __warn_references 142c266c8aSchristos __warn_references(alphasort, 152c266c8aSchristos "warning: reference to compatibility alphasort(); include <dirent.h> for correct reference") 162c266c8aSchristos #endif 172c266c8aSchristos 182c266c8aSchristos #define dirent dirent12 19*f1582e88Smrg #define ALPHASORTARG void * 202c266c8aSchristos 212c266c8aSchristos #include "gen/alphasort.c" 22