Commit b7fe5db7e57d6cd58fa59da80257f698bab7dc70

Authored by ths
1 parent aa268ea6

Restore build on older Linux hosts.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3084 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 12 additions and 0 deletions
linux-user/syscall.c
@@ -281,12 +281,24 @@ static uint16_t host_to_target_errno_table[1200] = { @@ -281,12 +281,24 @@ static uint16_t host_to_target_errno_table[1200] = {
281 [ECANCELED] = TARGET_ECANCELED, 281 [ECANCELED] = TARGET_ECANCELED,
282 [ENOMEDIUM] = TARGET_ENOMEDIUM, 282 [ENOMEDIUM] = TARGET_ENOMEDIUM,
283 [EMEDIUMTYPE] = TARGET_EMEDIUMTYPE, 283 [EMEDIUMTYPE] = TARGET_EMEDIUMTYPE,
  284 +#ifdef ENOKEY
284 [ENOKEY] = TARGET_ENOKEY, 285 [ENOKEY] = TARGET_ENOKEY,
  286 +#endif
  287 +#ifdef EKEYEXPIRED
285 [EKEYEXPIRED] = TARGET_EKEYEXPIRED, 288 [EKEYEXPIRED] = TARGET_EKEYEXPIRED,
  289 +#endif
  290 +#ifdef EKEYREVOKED
286 [EKEYREVOKED] = TARGET_EKEYREVOKED, 291 [EKEYREVOKED] = TARGET_EKEYREVOKED,
  292 +#endif
  293 +#ifdef EKEYREJECTED
287 [EKEYREJECTED] = TARGET_EKEYREJECTED, 294 [EKEYREJECTED] = TARGET_EKEYREJECTED,
  295 +#endif
  296 +#ifdef EOWNERDEAD
288 [EOWNERDEAD] = TARGET_EOWNERDEAD, 297 [EOWNERDEAD] = TARGET_EOWNERDEAD,
  298 +#endif
  299 +#ifdef ENOTRECOVERABLE
289 [ENOTRECOVERABLE] = TARGET_ENOTRECOVERABLE, 300 [ENOTRECOVERABLE] = TARGET_ENOTRECOVERABLE,
  301 +#endif
290 }; 302 };
291 303
292 static inline int host_to_target_errno(int err) 304 static inline int host_to_target_errno(int err)