summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2011-01-27 21:27:27 +0000
committerTom Lane2011-01-27 21:29:59 +0000
commit9ca60201119fdc41b05beb7063ee5f8d359d099b (patch)
tree2c3c05cf4829e3eb1621d15afb39ca22fad3235c
parente7a1793f55f479e360725a1300d0444a4282d14b (diff)
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 6ec19c7c04b..4b0d8fe0a67 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -2697,7 +2697,9 @@ ProcessInterrupts(void)
*/
#if defined(__ia64__) || defined(__ia64)
+#ifdef __INTEL_COMPILER
#include <asm/ia64regs.h>
+#endif
static __inline__ char *
ia64_get_bsp(void)