and don't declare sys_errlist unless you need to.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7336
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Jan 18 18:33:18 1996 Sam Hartman <hartmans@zygorthian-space-raiders.MIT.EDU>
+
+ * cmds.c: Handle sys_errlist and remove declaration of errno.
+
+ * configure.in: Check to see if we need to declare sys_errlist.
+
+ * ftp.c secure.c: Only define sys_errlist if needed
+
Thu Jan 18 11:55:50 1996 Sam Hartman <hartmans@tertius.mit.edu>
* configure.in: Check for sys/select.h
extern char *remglob();
extern char *getenv();
#define strerror(error) (sys_errlist[error])
+#ifdef NEED_SYS_ERRLIST
extern char *sys_errlist[];
-extern int errno;
+#endif
+
extern off_t restart_point;
extern char reply_string[];
KRB5_SIGTYPE
CHECK_SIGPROCMASK
CHECK_WAIT_TYPE
+DECLARE_SYS_ERRLIST
AC_FUNC_VFORK
AC_HAVE_FUNCS(getcwd getdtablesize)
AC_CHECK_HEADERS(sys/select.h)
off_t restart_point = 0;
#define strerror(error) (sys_errlist[error])
+#ifdef NEED_SYS_ERRLIST
extern char *sys_errlist[];
+#endif
+
extern int connected, errno;
#define herror() printf("unknown host\n")
#include <sys/types.h>
#include <netinet/in.h>
#include <errno.h>
-extern int errno;
+
+#ifdef NEED_SYS_ERRLIST
extern char *sys_errlist[];
+#endif
extern struct sockaddr_in hisaddr;
extern struct sockaddr_in myaddr;