strerror() is used in preference to sys_errlist().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6931
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Oct 2 15:22:01 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * error_message.c (error_message): Fix logic if #ifdefs for
+ HAVE_STRERROR and HAVE_SYS_ERRLIST. strerror() is used in
+ preference to sys_errlist().
+
Mon Oct 2 11:16:32 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* configure.in (V5_MAKE_SHARED_LIB): Add version number 0.1 for
offset = (int) l_offset;
table_num = code - l_offset;
if (!table_num) {
-#ifdef HAS_SYSERRLIST
#ifdef HAS_STRERROR
- return strerror (offset);
+ cp = strerror(offset);
+ if (cp)
+ return cp;
+ goto oops;
#else
+#ifdef HAS_SYSERRLIST
if (offset < sys_nerr)
return(sys_errlist[offset]);
else
goto oops;
-#endif
#else
goto oops;
-#endif
+#endif /* HAS_SYSERRLIST */
+#endif /* HAS_STRERROR */
}
for (et = _et_list; et; et = et->next) {
if (et->table->base == table_num) {