From 63759108a1376b6e45a4491551f71d8cafdcddc1 Mon Sep 17 00:00:00 2001 From: James Lentini Date: Wed, 12 Jul 2006 14:56:26 +0000 Subject: [PATCH] r8503: Fix IA64 build problems reported by John Partridge Signed-off-by: James Lentini --- Makefile.am | 5 +++-- dapl/udapl/linux/dapl_osd.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 405dca2..62db9dd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,10 +1,11 @@ # $Id: $ +OSFLAGS = -DOS_RELEASE=$(shell expr `uname -r | cut -f1 -d.` \* 65536 + `uname -r | cut -f2 -d.`) # Check for RedHat, needed for ia64 udapl atomic operations (IA64_FETCHADD syntax) if OS_RHEL -OSFLAGS=-DREDHAT_EL4 +OSFLAGS += -DREDHAT_EL4 else -OSFLAGS= +OSFLAGS += endif if DEBUG diff --git a/dapl/udapl/linux/dapl_osd.h b/dapl/udapl/linux/dapl_osd.h index 822686a..fb2db09 100644 --- a/dapl/udapl/linux/dapl_osd.h +++ b/dapl/udapl/linux/dapl_osd.h @@ -80,6 +80,8 @@ #if defined(__ia64__) || defined(__PPC64__) #include +#endif +#if defined(__PPC64__) #include #endif -- 2.46.0