From: James Lentini Date: Wed, 12 Jul 2006 14:56:26 +0000 (+0000) Subject: r8503: Fix IA64 build problems reported by John Partridge X-Git-Tag: libdapl-1.2.1~28 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=63759108a1376b6e45a4491551f71d8cafdcddc1;p=~ardavis%2Fdapl.git r8503: Fix IA64 build problems reported by John Partridge Signed-off-by: James Lentini --- 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