summaryrefslogtreecommitdiffstats
path: root/bsd-user/errno_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsd-user/errno_defs.h')
-rw-r--r--bsd-user/errno_defs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/bsd-user/errno_defs.h b/bsd-user/errno_defs.h
index 832671354f..73cfa24b7f 100644
--- a/bsd-user/errno_defs.h
+++ b/bsd-user/errno_defs.h
@@ -151,6 +151,10 @@
/* Internal errors: */
#define TARGET_EJUSTRETURN 254 /* Just return without modifing regs */
#define TARGET_ERESTART 255 /* Restart syscall */
-#define TARGET_ERESTARTSYS TARGET_ERESTART /* Linux compat */
+
+#include "special-errno.h"
+
+_Static_assert(TARGET_ERESTART == QEMU_ERESTARTSYS,
+ "TARGET_ERESTART and QEMU_ERESTARTSYS expected to match");
#endif /* ! _ERRNO_DEFS_H_ */