mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
Spell __darwin__ correctly, to suppress compiler warning on OSX.
This commit is contained in:
parent
e9ad14f9f4
commit
adf6b8edfb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user