Skip to content

Commit 5c337fb

Browse files
committed
Adjust pg_upgrade BSD defines for scandir(), per report from Giles Lean
1 parent 5b79fda commit 5c337fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_upgrade/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ pg_scandir(migratorContext *ctx, const char *dirname,
245245
* autoconf doesn't have a suitable builtin test and it seems overkill
246246
* to add one just to avoid a warning.
247247
*/
248-
#elif defined(freebsd) || defined(__bsdi__) || defined(__darwin__) || defined(openbsd)
248+
#elif defined(__FreeBSD__) || defined(__bsdi__) || defined(__darwin__) || defined(__OpenBSD__)
249249
/* no const */
250250
return scandir(dirname, namelist, (int (*) (struct dirent *)) selector, NULL);
251251
#else

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy