projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b79fda
)
Adjust pg_upgrade BSD defines for scandir(), per report from Giles Lean
author
Bruce Momjian
<bruce@momjian.us>
Sat, 15 May 2010 10:21:54 +0000
(10:21 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Sat, 15 May 2010 10:21:54 +0000
(10:21 +0000)
contrib/pg_upgrade/file.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/file.c
b/contrib/pg_upgrade/file.c
index 35d7761eeb687242b955fa96f01701dbf1ae1727..2361e6ec742f7e442835676ca068a645b63c5449 100644
(file)
--- a/
contrib/pg_upgrade/file.c
+++ b/
contrib/pg_upgrade/file.c
@@
-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