Commit 3f911a51b20e69851e7091a076adecdae3d1b5de
1 parent
1d6198c3
Fix warning about unused shm_regions
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6001 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
0 deletions
linux-user/syscall.c
| @@ -1614,12 +1614,14 @@ static abi_long do_socketcall(int num, abi_ulong vptr) | @@ -1614,12 +1614,14 @@ static abi_long do_socketcall(int num, abi_ulong vptr) | ||
| 1614 | } | 1614 | } |
| 1615 | #endif | 1615 | #endif |
| 1616 | 1616 | ||
| 1617 | +#ifdef TARGET_NR_ipc | ||
| 1617 | #define N_SHM_REGIONS 32 | 1618 | #define N_SHM_REGIONS 32 |
| 1618 | 1619 | ||
| 1619 | static struct shm_region { | 1620 | static struct shm_region { |
| 1620 | abi_ulong start; | 1621 | abi_ulong start; |
| 1621 | abi_ulong size; | 1622 | abi_ulong size; |
| 1622 | } shm_regions[N_SHM_REGIONS]; | 1623 | } shm_regions[N_SHM_REGIONS]; |
| 1624 | +#endif | ||
| 1623 | 1625 | ||
| 1624 | struct target_ipc_perm | 1626 | struct target_ipc_perm |
| 1625 | { | 1627 | { |