mirror of
https://github.com/postgres/postgres.git
synced 2026-02-10 22:33:50 -05:00
Adjust pg_upgrade BSD defines for scandir(), per report from Giles Lean
This commit is contained in:
parent
5b79fdadda
commit
5c337fb45c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue