Skip to content

Commit adf6b8e

Browse files
committed
Spell __darwin__ correctly, to suppress compiler warning on OSX.
1 parent e9ad14f commit adf6b8e

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