]> git.proxmox.com Git - mirror_qemu.git/commitdiff
Restore build on older Linux hosts.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 23 Jul 2007 15:37:46 +0000 (15:37 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 23 Jul 2007 15:37:46 +0000 (15:37 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3084 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/syscall.c

index a4add6494f8a00cd6cce5f03903da4a81007f207..e23a684e763c983e07e77201670c4faa2033b048 100644 (file)
@@ -281,12 +281,24 @@ static uint16_t host_to_target_errno_table[1200] = {
     [ECANCELED]                = TARGET_ECANCELED,
     [ENOMEDIUM]                = TARGET_ENOMEDIUM,
     [EMEDIUMTYPE]      = TARGET_EMEDIUMTYPE,
+#ifdef ENOKEY
     [ENOKEY]           = TARGET_ENOKEY,
+#endif
+#ifdef EKEYEXPIRED
     [EKEYEXPIRED]      = TARGET_EKEYEXPIRED,
+#endif
+#ifdef EKEYREVOKED
     [EKEYREVOKED]      = TARGET_EKEYREVOKED,
+#endif
+#ifdef EKEYREJECTED
     [EKEYREJECTED]     = TARGET_EKEYREJECTED,
+#endif
+#ifdef EOWNERDEAD
     [EOWNERDEAD]       = TARGET_EOWNERDEAD,
+#endif
+#ifdef ENOTRECOVERABLE
     [ENOTRECOVERABLE]  = TARGET_ENOTRECOVERABLE,
+#endif
        };
 
 static inline int host_to_target_errno(int err)