1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Remove scandir() requirement in pg_upgrade; instead just use readdir()

--- we were not using the scandir pattern filtering anyway.  This also
removes the scandir requirement in configure.
This commit is contained in:
Bruce Momjian
2011-11-17 21:59:04 -05:00
parent fc6d1006bd
commit 7012b5edb7
5 changed files with 31 additions and 85 deletions

View File

@ -333,8 +333,7 @@ const char *setupPageConverter(pageCnvCtx **result);
typedef void *pageCnvCtx;
#endif
int pg_scandir(const char *dirname, struct dirent *** namelist,
int (*selector) (const struct dirent *));
int load_directory(const char *dirname, struct dirent ***namelist);
const char *copyAndUpdateFile(pageCnvCtx *pageConverter, const char *src,
const char *dst, bool force);
const char *linkAndUpdateFile(pageCnvCtx *pageConverter, const char *src,