postgres.git / summary / log / commit / refs
commit 948a64d2b9d75e20a247fd7e3f11fd2a4120319b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu Jan 27 21:27:27 2011 +0000
First released in: 9.1.0, 8.2.20, 8.3.14, 8.4.7, 9.0.3
Don't include <asm/ia64regs.h> unnecessarily.
We only need that header when compiling with icc, since the gcc variant of
ia64_get_bsp() uses in-line assembly code. Per report from Frank Brendel,
the header doesn't exist on all IA64 platforms; so don't include it unless
we need it.
src/backend/tcop/postgres.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 9447db43207..e63ca71b333 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -2551,7 +2551,9 @@ ProcessInterrupts(void)
*/
#if defined(__ia64__) || defined(__ia64)
+#ifdef __INTEL_COMPILER
#include <asm/ia64regs.h>
+#endif
static __inline__ char *
ia64_get_bsp(void)
[parent: d5a0bb5acc87]