aboutsummaryrefslogtreecommitdiffstats
path: root/consts.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--consts.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/consts.c b/consts.c
index 9a7e3fb..567a6e7 100644
--- a/consts.c
+++ b/consts.c
@@ -9,6 +9,18 @@ get_errno_name(int err)
#define X(N) if (err == N) return #N;
LIST_ERRNOS(X)
+#ifdef ALSO_ERESTARTSYS
+ X(ERESTARTSYS)
+#endif
+#ifdef ALSO_ERESTARTNOINTR
+ X(ERESTARTNOINTR)
+#endif
+#ifdef ALSO_ERESTARTNOHAND
+ X(ERESTARTNOHAND)
+#endif
+#ifdef ALSO_ERESTART_RESTARTBLOCK
+ X(ERESTART_RESTARTBLOCK)
+#endif
#undef X
sprintf(buf, "%i", err);