summaryrefslogtreecommitdiff
path: root/sysutils/freeipmi
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-06-05 06:55:10 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-06-05 06:55:10 +0000
commit3239714362486dbea14b5393df31d9b4880801cf (patch)
tree4448ae6fec3cb18fc792493c9de3c607422e8279 /sysutils/freeipmi
parent- Fix build with gcc 4.2 (diff)
- Fix build on amd64
Submitted by: pointhat via kris maintainer
Notes
Notes: svn path=/head/; revision=192805
Diffstat (limited to 'sysutils/freeipmi')
-rw-r--r--sysutils/freeipmi/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/freeipmi/Makefile b/sysutils/freeipmi/Makefile
index 80ab82918175..ae06a065447a 100644
--- a/sysutils/freeipmi/Makefile
+++ b/sysutils/freeipmi/Makefile
@@ -53,8 +53,8 @@ BROKEN= missing getpw*_r functions in this FreeBSD release
# ports. Note: there is a bug in FreeBSD 5 before 5.5-RELEASE that
# causes SIGBUS to the process sometimes when i386_set_ioperm is used
# (PR 84842).
-.if defined(WITH_IOPERM) || \
- ${OSVERSION} < 500000 || ${OSVERSION} >= 505000
+.if ${ARCH} == "i386" && (defined(WITH_IOPERM) || \
+ ${OSVERSION} < 500000 || ${OSVERSION} >= 505000)
CPPFLAGS+= -DUSE_IOPERM
.endif