Commit adf6b8ed authored by Tom Lane's avatar Tom Lane

Spell __darwin__ correctly, to suppress compiler warning on OSX.

parent e9ad14f9
...@@ -245,7 +245,7 @@ pg_scandir(migratorContext *ctx, const char *dirname, ...@@ -245,7 +245,7 @@ pg_scandir(migratorContext *ctx, const char *dirname,
* autoconf doesn't have a suitable builtin test and it seems overkill * autoconf doesn't have a suitable builtin test and it seems overkill
* to add one just to avoid a warning. * 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 */ /* no const */
return scandir(dirname, namelist, (int (*) (struct dirent *)) selector, NULL); return scandir(dirname, namelist, (int (*) (struct dirent *)) selector, NULL);
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment