summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nfs/nfs_common.h')
-rw-r--r--sys/nfs/nfs_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/nfs/nfs_common.h b/sys/nfs/nfs_common.h
index 32ce4af..7c06130 100644
--- a/sys/nfs/nfs_common.h
+++ b/sys/nfs/nfs_common.h
@@ -127,4 +127,10 @@ do { \
nfsm_dcheck(t1, mrep); \
} while (0)
+#ifdef __NO_STRICT_ALIGNMENT
+#define nfsm_aligned(p, t) 1
+#else
+#define nfsm_aligned(p, t) ((((u_long)(p)) & (sizeof(t) - 1)) == 0)
+#endif
+
#endif
OpenPOWER on IntegriCloud