From 5c337fb45ceaffc77b88fe7d519c4c62aff0ea7d Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 15 May 2010 10:21:54 +0000 Subject: [PATCH] Adjust pg_upgrade BSD defines for scandir(), per report from Giles Lean --- contrib/pg_upgrade/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pg_upgrade/file.c b/contrib/pg_upgrade/file.c index 35d7761eeb..2361e6ec74 100644 --- a/contrib/pg_upgrade/file.c +++ b/contrib/pg_upgrade/file.c @@ -245,7 +245,7 @@ pg_scandir(migratorContext *ctx, const char *dirname, * autoconf doesn't have a suitable builtin test and it seems overkill * to add one just to avoid a warning. */ -#elif defined(freebsd) || defined(__bsdi__) || defined(__darwin__) || defined(openbsd) +#elif defined(__FreeBSD__) || defined(__bsdi__) || defined(__darwin__) || defined(__OpenBSD__) /* no const */ return scandir(dirname, namelist, (int (*) (struct dirent *)) selector, NULL); #else