aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/hw_shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sim/ppc/hw_shm.c')
-rw-r--r--sim/ppc/hw_shm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sim/ppc/hw_shm.c b/sim/ppc/hw_shm.c
index c4d5cae..0f78ae8 100644
--- a/sim/ppc/hw_shm.c
+++ b/sim/ppc/hw_shm.c
@@ -77,6 +77,8 @@
*/
+#ifdef HAVE_SYSV_SHM
+
typedef struct _hw_shm_device {
unsigned_word physical_address;
char *shm_address;
@@ -222,4 +224,12 @@ const device_descriptor hw_shm_device_descriptor[] = {
{ NULL },
};
+#else
+
+const device_descriptor hw_shm_device_descriptor[] = {
+ { NULL },
+};
+
+#endif /* HAVE_SYSV_SHM */
+
#endif /* _HW_SHM_C_ */