diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2010-05-14 00:19:46 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2010-05-14 00:19:46 +0000 |
commit | adf6b8edfbc4a286ac779261685c36f42b664325 (patch) | |
tree | 1c4313d29d3e8654b02f5ae02dcf150de1d23fdc | |
parent | e9ad14f9f4a8b3eb2c7497e5cee7a444c3469784 (diff) | |
download | postgresql-adf6b8edfbc4a286ac779261685c36f42b664325.tar.gz postgresql-adf6b8edfbc4a286ac779261685c36f42b664325.zip |
Spell __darwin__ correctly, to suppress compiler warning on OSX.
-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 f035a6ad2f6..2bdda622ebc 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 |