SYS_ERRLIST_DECLARED for sanity's sake.
* error_message.c: cpp symbol police: HAS_FOO -> HAVE_FOO
* configure.in: Fix up check for strerror; use autoconf
conventions
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9017
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Aug 30 22:55:14 1996 Tom Yu <tlyu@mit.edu>
+
+ * internal.h: #ifdef NEED_SYS_ERRLIST -> #ifdef
+ SYS_ERRLIST_DECLARED for sanity's sake.
+
+ * error_message.c: cpp symbol police: HAS_FOO -> HAVE_FOO
+
+ * configure.in: Fix up check for strerror; use autoconf
+ conventions
+
Wed Jun 12 12:10:59 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
* error_table.h: For Win32, define away FAR and NEAR.
AC_DEFINE(HDR_HAS_PERROR)
fi
dnl
-AC_FUNC_CHECK(strerror,AC_DEFINE(HAS_STRERROR))
+AC_CHECK_FUNCS(strerror)
AC_HEADER_STDARG
AC_HAVE_HEADERS(stdlib.h)
CopySrcHeader(com_err.h,$(BUILDTOP)/include)
char *cp;
#if defined(_MSDOS) || defined(_WIN32)
-#define HAS_STRERROR 1
+#define HAVE_STRERROR 1
/*
** Winsock defines errors in the range 10000-10100. These are equivalent
** to 10000 plus the Berkeley error numbers.
offset = (int) l_offset;
table_num = code - l_offset;
if (!table_num) {
-#ifdef HAS_STRERROR
+#ifdef HAVE_STRERROR
cp = strerror(offset);
if (cp)
return cp;
goto oops;
#else
-#ifdef HAS_SYSERRLIST
+#ifdef HAVE_SYS_ERRLIST
if (offset < sys_nerr)
return(sys_errlist[offset]);
else
goto oops;
#else
goto oops;
-#endif /* HAS_SYSERRLIST */
-#endif /* HAS_STRERROR */
+#endif /* HAVE_SYS_ERRLIST */
+#endif /* HAVE_STRERROR */
}
for (et = _et_list; et; et = et->next) {
if (et->table->base == table_num) {
#include <errno.h>
-#ifdef NEED_SYS_ERRLIST
+#ifndef SYS_ERRLIST_DECLARED
extern char const * const sys_errlist[];
extern const int sys_nerr;
#endif