about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/errnos.awk
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/errnos.awk')
-rw-r--r--sysdeps/mach/hurd/errnos.awk8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdeps/mach/hurd/errnos.awk b/sysdeps/mach/hurd/errnos.awk
index 5c88d11210..100e4b1114 100644
--- a/sysdeps/mach/hurd/errnos.awk
+++ b/sysdeps/mach/hurd/errnos.awk
@@ -54,15 +54,15 @@ errnoh == 2 && $1 == "@deftypevr"  && $2 == "Macro" && $3 == "int" \
   { ++errnoh; e = $4; next; }
 
 errnoh == 3 && $1 == "@comment" && $2 == "errno" {
-    errno = $3 + 0;
-    if (errno == 0)
-      next;
-    if (errno > maxerrno) maxerrno = errno;
     if (e == "EWOULDBLOCK")
       {
 	print "#define EWOULDBLOCK EAGAIN /* Operation would block */";
 	next;
       }
+    errno = $3 + 0;
+    if (errno == 0)
+      next;
+    if (errno > maxerrno) maxerrno = errno;
     x = sprintf ("%-40s/*%s */", sprintf ("%-24s%s", "#define\t" e,
 					  "_HURD_ERRNO (" errno ")"),
 		 etext);