Spell __darwin__ correctly, to suppress compiler warning on OSX.

This commit is contained in:
Tom Lane 2010-05-14 00:19:46 +00:00
parent e9ad14f9f4
commit adf6b8edfb

View 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