]> git.proxmox.com Git - mirror_qemu.git/blobdiff - bsd-user/errno_defs.h
Merge tag 'pull-target-arm-20230908' of https://git.linaro.org/people/pmaydell/qemu...
[mirror_qemu.git] / bsd-user / errno_defs.h
index 141e08456c4bbdaa786632d1c7f1e1ea845367fd..f3e8ac34883fef00aca58ba438a1f7279bc7fec3 100644 (file)
@@ -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 */
 /* Internal errors: */
 #define TARGET_EJUSTRETURN      254             /* Just return without modifing regs */
 #define TARGET_ERESTART         255             /* Restart syscall */
-#define QEMU_ERESTARTSYS        TARGET_ERESTART
 
-#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 */