X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=bsd-user%2Ferrno_defs.h;h=abe70119d90ff1682f40e89f1f1133feffb7e81f;hb=831a5a7fcbb3bfc36e8e7ed511817e8390344f87;hp=832671354fd0d46ca0cb1af215dd450417b23238;hpb=362534a643b4a34bcb223996538ce9de5cdab946;p=mirror_qemu.git diff --git a/bsd-user/errno_defs.h b/bsd-user/errno_defs.h index 832671354f..abe70119d9 100644 --- a/bsd-user/errno_defs.h +++ b/bsd-user/errno_defs.h @@ -34,8 +34,8 @@ * @(#)errno.h 8.5 (Berkeley) 1/21/94 */ -#ifndef _ERRNO_DEFS_H_ -#define _ERRNO_DEFS_H_ +#ifndef ERRNO_DEFS_H +#define ERRNO_DEFS_H #define TARGET_EPERM 1 /* Operation not permitted */ #define TARGET_ENOENT 2 /* No such file or directory */ @@ -149,8 +149,12 @@ #define TARGET_ELAST 90 /* Must be equal largest errno */ /* Internal errors: */ -#define TARGET_EJUSTRETURN 254 /* Just return without modifing regs */ +#define TARGET_EJUSTRETURN 254 /* Just return without modifying regs */ #define TARGET_ERESTART 255 /* Restart syscall */ -#define TARGET_ERESTARTSYS TARGET_ERESTART /* Linux compat */ -#endif /* ! _ERRNO_DEFS_H_ */ +#include "special-errno.h" + +_Static_assert(TARGET_ERESTART == QEMU_ERESTARTSYS, + "TARGET_ERESTART and QEMU_ERESTARTSYS expected to match"); + +#endif /* ERRNO_DEFS_H */