Don't include <asm/ia64regs.h> unnecessarily.
authorTom Lane <[email protected]>
Thu, 27 Jan 2011 21:27:27 +0000 (16:27 -0500)
committerTom Lane <[email protected]>
Thu, 27 Jan 2011 21:29:59 +0000 (16:29 -0500)
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

index 6ec19c7c04b23abda8d9c84169b7e5933db3f2ae..4b0d8fe0a678bebe5bbc9d22bf7d1cfb30d5f1f5 100644 (file)
@@ -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)