diff options
| author | Bruce Momjian <bruce@momjian.us> | 2010-05-15 10:21:54 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2010-05-15 10:21:54 +0000 |
| commit | 5c337fb45ceaffc77b88fe7d519c4c62aff0ea7d (patch) | |
| tree | 8f544b94b054253739e0bc80bfe3fb2d9ea1613b | |
| parent | 5b79fdadda71cad77bdb127d046b785bdd8332ec (diff) | |
Adjust pg_upgrade BSD defines for scandir(), per report from Giles Lean
| -rw-r--r-- | contrib/pg_upgrade/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/file.c b/contrib/pg_upgrade/file.c index 35d7761eeb6..2361e6ec742 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 |
