summaryrefslogtreecommitdiff
path: root/src/include/pg_config_manual.h
diff options
context:
space:
mode:
authorAndres Freund2014-10-01 09:54:05 +0000
committerAndres Freund2014-10-01 10:17:03 +0000
commitef8863844bb0b0dab7b92c5f278302a42b4bf05a (patch)
treeec207e71ee5f3f6b621b253d118efca00a709d3d /src/include/pg_config_manual.h
parent8492d86342915cb466eeb2d896d9b49887f59350 (diff)
Rename CACHE_LINE_SIZE to PG_CACHE_LINE_SIZE.
As noted in http://bugs.debian.org/763098 there is a conflict between postgres' definition of CACHE_LINE_SIZE and the definition by various *bsd platforms. It's debatable who has the right to define such a name, but postgres' use was only introduced in 375d8526f290 (9.4), so it seems like a good idea to rename it. Discussion: [email protected] Per complaint of Christoph Berg in the above email, although he's not the original bug reporter. Backpatch to 9.4 where the define was introduced.
Diffstat (limited to 'src/include/pg_config_manual.h')
-rw-r--r--src/include/pg_config_manual.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h
index 195fb262811..9e25ce0fbb8 100644
--- a/src/include/pg_config_manual.h
+++ b/src/include/pg_config_manual.h
@@ -238,7 +238,7 @@
* bytes of wasted memory. The default is 128, which should be large enough
* for all supported platforms.
*/
-#define CACHE_LINE_SIZE 128
+#define PG_CACHE_LINE_SIZE 128
/*
*------------------------------------------------------------------------