Home | History | Annotate | Line # | Download | only in gen
      1 /*	$NetBSD: compat_scandir.c,v 1.2 2016/12/16 04:45:04 mrg Exp $	*/
      2 
      3 #include <sys/stat.h>
      4 #define __LIBC12_SOURCE__
      5 #include "namespace.h"
      6 #include <dirent.h>
      7 #include <compat/include/dirent.h>
      8 
      9 #ifdef __weak_alias
     10 __weak_alias(scandir,_scandir)
     11 #endif
     12 
     13 #ifdef __warn_references
     14 __warn_references(scandir,
     15     "warning: reference to compatibility scandir(); include <dirent.h> for correct reference")
     16 #endif
     17 
     18 #define dirent dirent12
     19 #define COMPARARG void *
     20 
     21 #include "gen/scandir.c"
     22