summary refs log tree commit diff
path: root/sysdeps/gnu/errlist-compat.awk
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/gnu/errlist-compat.awk')
-rw-r--r--sysdeps/gnu/errlist-compat.awk5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/gnu/errlist-compat.awk b/sysdeps/gnu/errlist-compat.awk
index c9a7a9cc44..4ab9786e63 100644
--- a/sysdeps/gnu/errlist-compat.awk
+++ b/sysdeps/gnu/errlist-compat.awk
@@ -52,6 +52,11 @@ $1 == "#errlist-compat" {
 }
 
 END {
+  if (! highest_version) {
+    print "/* No sys_errlist/sys_nerr symbols defined on this platform.  */";
+    exit 0;
+  }
+
   count = maxerr + 1;
 
   if (highest != count) {