#ifdef linux
#define DIRENT_ILLEGAL_ACCESS /* for dirent */
#endif

#define _LARGEFILE64_SOURCE
#define _GNU_SOURCE


/*
 * readdir.c
 *
 * Copyright (C) 1993 Alain Knaff
 */
#define _LARGEFILE64_SOURCE
#define _GNU_SOURCE

#include "sysincludes.h"


struct dirent *__libc_readdir(DIR * dir);


#define READDIR readdir
#define real_READDIR zlib_real_readdir
#define DIRENT dirent
#define ADJUST_NAME adjust_name
#define GETDENTS getdents
#define real_GETDENTS zlib_real_getdents

#include "readdir_tmpl.c"

#undef READDIR
#undef real_READDIR
#undef DIRENT
#undef ADJUST_NAME
#undef GETDENTS
#undef USE_GETDENTS
#undef real_GETDENTS

#if (defined HAVE_READDIR64 || defined HAVE_GETDENTS64)

extern struct dirent64 *__readdir64 (DIR *dirp);

#define READDIR readdir64
#define real_READDIR zlib_real_readdir64
#define DIRENT dirent64
#define ADJUST_NAME adjust_name64

#if (defined HAVE_GETDENTS64 || defined SYS_getdents64)
#define GETDENTS getdents64
#define real_GETDENTS zlib_real_getdents64
#endif

#include "readdir_tmpl.c"

#endif
