aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-01-27 16:27:27 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2011-01-27 16:29:44 -0500
commit67dbe720f6ba18393cd85574718aa2683b77a212 (patch)
treee757014b406313a04a25b8c0f530991f6d2651d9
parent7f2d75408b63fab9cc613b3d60d057f6d3ec3adc (diff)
downloadpostgresql-67dbe720f6ba18393cd85574718aa2683b77a212.tar.gz
postgresql-67dbe720f6ba18393cd85574718aa2683b77a212.zip
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.
-rw-r--r--src/backend/tcop/postgres.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 62adaca2174..08369df2d14 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -2995,7 +2995,9 @@ ProcessInterrupts(void)
*/
#if defined(__ia64__) || defined(__ia64)
+#ifdef __INTEL_COMPILER
#include <asm/ia64regs.h>
+#endif
static __inline__ char *
ia64_get_bsp(void)