summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2010-03-24 02:02:02 +0000
committerrmacklem <rmacklem@FreeBSD.org>2010-03-24 02:02:02 +0000
commit823182179d70a19591884d27510a81adce7d9136 (patch)
tree74e7a4ff28df5c68972a3a340fd850954e97951c
parent2cf63c604b439805c0475dbb5349a7c534c41843 (diff)
downloadFreeBSD-src-823182179d70a19591884d27510a81adce7d9136.zip
FreeBSD-src-823182179d70a19591884d27510a81adce7d9136.tar.gz
Fix the experimental NFS subsystem so that it uses the correct
preprocessor macro name for not requiring strict data alignment. Suggested by: marius MFC after: 2 weeks
-rw-r--r--sys/fs/nfs/nfs_commonport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/nfs/nfs_commonport.c b/sys/fs/nfs/nfs_commonport.c
index 7f27494..8092a5d 100644
--- a/sys/fs/nfs/nfs_commonport.c
+++ b/sys/fs/nfs/nfs_commonport.c
@@ -117,7 +117,7 @@ struct mtx nfs_slock_mutex;
/* local functions */
static int nfssvc_call(struct thread *, struct nfssvc_args *, struct ucred *);
-#if defined(__i386__)
+#ifdef __NO_STRICT_ALIGNMENT
/*
* These architectures don't need re-alignment, so just return.
*/
@@ -127,7 +127,7 @@ newnfs_realign(struct mbuf **pm)
return;
}
-#else
+#else /* !__NO_STRICT_ALIGNMENT */
/*
* newnfs_realign:
*
@@ -185,7 +185,7 @@ newnfs_realign(struct mbuf **pm)
pm = &m->m_next;
}
}
-#endif /* !__i386__ */
+#endif /* __NO_STRICT_ALIGNMENT */
#ifdef notdef
static void
OpenPOWER on IntegriCloud