Properly define pg_upgrade global variable, per bug report from Chris

Ruprecht on Mac (64 bit).
This commit is contained in:
Bruce Momjian 2010-06-15 02:08:01 +00:00
parent 6bbaa3148d
commit 8141523e35
2 changed files with 4 additions and 1 deletions

View file

@ -237,7 +237,7 @@ typedef struct
/*
* Global variables
*/
char scandir_file_pattern[MAXPGPATH];
extern char scandir_file_pattern[];
/* check.c */

View file

@ -17,6 +17,9 @@ static void transfer_relfile(migratorContext *ctx, pageCnvCtx *pageConverter,
const char *oldnspname, const char *oldrelname,
const char *newnspname, const char *newrelname);
/* used by scandir(), must be global */
char scandir_file_pattern[MAXPGPATH];
/*
* transfer_all_new_dbs()
*