]> granicus.if.org Git - postgresql/commitdiff
Spell __darwin__ correctly, to suppress compiler warning on OSX.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 May 2010 00:19:46 +0000 (00:19 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 May 2010 00:19:46 +0000 (00:19 +0000)
contrib/pg_upgrade/file.c

index f035a6ad2f629fc6ea83ea6b3e1cc77885c6e638..2bdda622ebc2e502d438e1ef7e1b74cf1146b443 100644 (file)
@@ -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