summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/sys/_sx.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/sys/_sx.h')
-rw-r--r--freebsd/sys/sys/_sx.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/freebsd/sys/sys/_sx.h b/freebsd/sys/sys/_sx.h
index 699316b6..b07ac47a 100644
--- a/freebsd/sys/sys/_sx.h
+++ b/freebsd/sys/sys/_sx.h
@@ -30,6 +30,9 @@
#ifndef _SYS__SX_H_
#define _SYS__SX_H_
+#ifdef __rtems__
+#include <machine/rtems-bsd-mutex.h>
+#endif /* __rtems__ */
/*
* Shared/exclusive lock main structure definition.
@@ -38,6 +41,8 @@ struct sx {
struct lock_object lock_object;
#ifndef __rtems__
volatile uintptr_t sx_lock;
+#else /* __rtems__ */
+ rtems_bsd_mutex mutex;
#endif /* __rtems__ */
};